You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/05/14 03:50:15 UTC

[GitHub] [beam] brills commented on a change in pull request #11699: Update the range for pyarrow to qualify pyarrow 0.17.x

brills commented on a change in pull request #11699:
URL: https://github.com/apache/beam/pull/11699#discussion_r424855320



##########
File path: sdks/python/apache_beam/io/parquetio.py
##########
@@ -567,5 +567,6 @@ def _flush_buffer(self):
     size = 0
     for x in arrays:
       for b in x.buffers():
-        size = size + b.size
+        if b is not None:
+          size = size + b.size

Review comment:
       Maybe the array factory function (pa.array()) is smarter (`x` there was created just several lines ago, using that factory function)




----------------------------------------------------------------
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.

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