You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "lhoestq (via GitHub)" <gi...@apache.org> on 2025/04/24 11:15:55 UTC
Re: [I] [Python] ParquetFileFragment.to_batches() hangs forever [arrow]
lhoestq commented on issue #45214:
URL: https://github.com/apache/arrow/issues/45214#issuecomment-2827241186
This also causes `pyarrow.dataset.Dataset.to_batches()` to make the python script hang at the end:
```python
import pyarrow.dataset as ds
from huggingface_hub import HfFileSystem
file = "hf://datasets/vevotx/Tahoe-100M/data/train-00000-of-03388.parquet"
dataset = ds.dataset(file, format="parquet", filesystem=HfFileSystem())
for record_batch in dataset.to_batches(batch_size=100):
print(len(record_batch)) # 100
break
print("now hanging...")
```
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org