cyrankiewicz opened a new issue, #48111:
URL: https://github.com/apache/arrow/issues/48111

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I've encountered a situation where calling .to_table() on a 
pyarrow.dataset.Scanner causes the process to hang indefinitely.
   
   ```
   import pyarrow as pa
   import pyarrow.dataset as pd
   import pyarrow.parquet as pq
   t = pa.table({"col": 'pyarrow'})
   pq.write_table(t, 'table.parquet')
   pd.dataset('table.parquet').scanner(fragment_readahead=0).to_table()
   # never returns
   ```
   
   Note, that the data to read is minimal and the following works:
   
   ```
   import pyarrow as pa
   import pyarrow.dataset as pd
   import pyarrow.parquet as pq
   t = pa.table({"col": 'pyarrow'})
   pq.write_table(t, 'table.parquet')
   pd.dataset('table.parquet').scanner(fragment_readahead=0).head(100)
   pyarrow.Table
   col: string
   ----
   col: [["p","y","a","r","r","o","w"]]
   ```
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to