tolleybot commented on code in PR #55658:
URL: https://github.com/apache/arrow/pull/55658#discussion_r4806094023
##########
python/pyarrow/dataset.py:
##########
@@ -913,6 +914,15 @@ def write_dataset(data, base_dir, *,
basename_template=None, format=None,
Minimum number of rows per group. When the value is greater than 0,
the dataset writer will batch incoming data and only write the row
groups to the disk when sufficient rows have accumulated.
+ Rows waiting for a row group to fill are held in memory, and the
+ writer limits how many rows it holds this way, across all files
+ being written, to the larger of ``max_rows_queued / 4`` and this
+ value. When the limit is reached, the file holding the most waiting
+ rows has them written out as a smaller row group. A single file
+ therefore always reaches this value, but a partitioned write may
+ not unless ``max_rows_queued`` is 0 or at least 4 times this value
+ multiplied by the number of partitions being written at the same
+ time.
Review Comment:
Done, I used your wording. The detail about how the limit on staged rows is
derived now sits under `max_rows_queued`. I made the same change to the doc
comments on `min_rows_per_group` and `max_rows_queued` in `file_base.h` so the
two match.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]