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

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

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


##########
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:
   I'll defer to @jorisvandenbossche only because I don't actually know what a constant should like like in this file (style wise).  I can't find any good examples.



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