Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix an import issue #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions beam/arrayrecordio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from apache_beam import transforms
from apache_beam.coders import coders
from apache_beam.io import filebasedsink
from apache_beam.io.filesystem.CompressionTypes import AUTO
from apache_beam.io.filesystem import CompressionTypes
from array_record.python.array_record_module import ArrayRecordWriter


Expand All @@ -21,7 +21,7 @@ def __init__(
num_shards=0,
shard_name_template=None,
coder=coders.ToBytesCoder(),
compression_type=AUTO):
compression_type=CompressionTypes.AUTO):

super().__init__(
file_path_prefix,
Expand Down Expand Up @@ -53,7 +53,7 @@ def __init__(
num_shards=0,
shard_name_template=None,
coder=coders.ToBytesCoder(),
compression_type=AUTO):
compression_type=CompressionTypes.AUTO):

self._sink = _ArrayRecordSink(
file_path_prefix,
Expand Down