Bill-Johnson-Seequent opened a new issue, #45343: URL: https://github.com/apache/arrow/issues/45343
### Describe the bug, including details regarding any error messages, version, and platform. As of version 18.0.0, ParquetFile.iter_batches throws an error when the row_groups parameter is an empty list. The stack trace is: ``` Traceback (most recent call last): File "/pyarrow-issue.py", line 9, in <module> for batch in pq_file.iter_batches(row_groups=[]): File "pyarrow/_parquet.pyx", line 1634, in iter_batches File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status OSError: The file only has 1 row groups, requested metadata for row group: -1 ``` Have also seen the issue in PyArrow v18.1.0 and v19.0.0, but v17.0.0 does not have the issue. We are on Python version 3.12.3. Note: The workaround was to wrap the call in a check to see that row_groups was not empty! [iter_batches.zip](https://github.com/user-attachments/files/18529365/iter_batches.zip) ### Component(s) 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org