assignUser commented on issue #44408:
URL: https://github.com/apache/arrow/issues/44408#issuecomment-2414111278
I meant using pyarrow to load the files generated by dataset, I tried that
and it fails with the same error as in R with both pyarrow 15 and 17:
```
pyarrow.feather.read_feather("~/.cache/huggingface/datasets/squad/plain_text/0.0.0/7b6d24c440a36b6815f21b70d25016731768db1f/squad-train.arrow")
Traceback (most recent call last):
...
File "pyarrow/_feather.pyx", line 79, in
pyarrow._feather.FeatherReader.__cinit__
File "pyarrow/error.pxi", line 155, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
After perusing the dataset source it turns out that they are using the ipc
stream format https://github.com/huggingface/datasets/pull/1933
So you can use `arrow::read_ipc_stream("path/to/file.arrow")` to open it in
R.
--
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]