You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "shunping (via GitHub)" <gi...@apache.org> on 2025/01/04 03:11:09 UTC
Re: [PR] Fix TextIO not fully reading a GCS file when decompressive transcoding happens [beam]
shunping commented on code in PR #33384:
URL: https://github.com/apache/beam/pull/33384#discussion_r1902275341
##########
sdks/python/apache_beam/io/gcp/gcsfilesystem.py:
##########
@@ -377,3 +377,17 @@ def report_lineage(self, path, lineage, level=None):
# bucket only
components = components[:-1]
lineage.add('gcs', *components)
+
+ def check_splittability(self, path):
+ try:
+ file_metadata = self._gcsIO()._status(path)
+ if file_metadata.get('content_encoding', None) == 'gzip':
Review Comment:
The line has been removed in the new change.
##########
sdks/python/apache_beam/io/filesystem.py:
##########
@@ -945,3 +945,6 @@ def report_lineage(self, path, unused_lineage, level=None):
Unless override by FileSystem implementations, default to no-op.
"""
pass
+
+ def check_splittability(self, path):
+ return True
Review Comment:
The line has been removed in the new change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org