jorisvandenbossche commented on issue #33823:
URL: https://github.com/apache/arrow/issues/33823#issuecomment-1401746348

   Small reproducer without having to download a file:
   
   ```python
   import pyarrow as pa
   
   batch = pa.record_batch([pa.array([1, 2, 3])], ['a'])
   
   # Create an Arrow Stream file
   with pa.ipc.new_stream("test.arrows", batch.schema) as writer:
       writer.write(batch)
   
   # Read as Arrow File
   pa.ipc.open_file("test.arrows")
   # -> ... ArrowInvalid: Not an Arrow file
   ```
   
   I agree it would be nice we can give a more informative error message and 
hint the user they are reading a Arrow Streaming format file and not a Arrow 
File format file.
   
   


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