AlenkaF commented on issue #45009:
URL: https://github.com/apache/arrow/issues/45009#issuecomment-4780146955

   Confirming this is fixed in newer versions, most probably with 
https://github.com/apache/arrow/pull/45350.
   I have tested on latest main:
   
   ```python
   >>> import pyarrow.parquet as pq
   >>> import pyarrow as pa
   
   >>> pa.__version__
   '25.0.0.dev175+g8f3085e35.d20260623'
   
   >>> table = pa.table({'one': [-1, None, 2.5],
   ...                   'two': ['foo', 'bar', 'baz'],
   ...                   'three': [True, False, True]})
   
   >>> with pq.ParquetWriter('example_empty.parquet', table.schema) as writer:
   ...     pass
   ... 
   
   >>> parquet_file = pq.ParquetFile('example_empty.parquet')
   >>> for batch in parquet_file.iter_batches():
   ...     print(batch)
   ... 
   
   >>> parquet_file.num_row_groups
   0
   >>> list(parquet_file.iter_batches())
   []
   ```


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