shner-elmo opened a new issue, #34758:
URL: https://github.com/apache/arrow/issues/34758

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Hello, is this expected behavior?
   i.e. the size of each batch being much smaller than the `batch_size` 
parameter?
   ```py
   dataset = ds.dataset(f'data/level-25', format='parquet', schema=SCHEMA)
   it = dataset.to_batches(batch_size=131_072, columns=['path', 'id'])
   lst = [batch.num_rows for batch in it]
   
   >>> f'{dataset.count_rows():,}'
   '439,156,760'
   >>> len(dataset.files)
   5
   >>> len(lst)
   37182
   >>> import statistics
   >>> min(lst), max(lst), statistics.mean(lst), statistics.median(lst)
   (1, 32768, 11811.004249367974, 7356.5)
   ```
   
   ### Component(s)
   
   Parquet, Python


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

Reply via email to