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-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to