You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "mapleFU (via GitHub)" <gi...@apache.org> on 2023/06/09 16:03:50 UTC

[GitHub] [arrow] mapleFU commented on a diff in pull request #36012: GH-35859: [Python] Actually change the default row group size to 1Mi

mapleFU commented on code in PR #36012:
URL: https://github.com/apache/arrow/pull/36012#discussion_r1224493168


##########
python/pyarrow/_parquet.pyx:
##########
@@ -1767,7 +1767,7 @@ cdef class ParquetWriter(_Weakrefable):
             int64_t c_row_group_size
 
         if row_group_size is None or row_group_size == -1:
-            c_row_group_size = ctable.num_rows()
+            c_row_group_size = min(ctable.num_rows(), 1024*1024)

Review Comment:
   should we declare a constant rather than 1024*1024 directly?



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

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