You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
This might be more of a usage question since I couldn't find anything in the format docs on how to set the length field with compression.
The issue is that if I try to read an empty table with the Julia extension it just hangs. The reason for this seems to be that it only checks the length field in the RecordBatch when deciding whether to attempt to decode and not the length read from the first 8 bytes of the data.
The file created by the code below is readable by both pyarrow and the java implementation, so chances are that the Julia implementation is doing it wrong (I will open an issue there as well). Is there some reference to how one shall interpret the length field in RecordBatch when using compression?
Code to create an empty table in case I'm doing something wrong
When I tried saving a compressed empty table using pyarrow I got 0 as the length field and the Julia implementation could read the table without hanging.
Disclaimer: I don't have a working python installation so I did this though PythonCall. Hopefully I managed to remove all the Julia-isms so that it runs in python:
kou
changed the title
Unexpected RecordBatch length when saving empty table to file with compression
[Java] Unexpected RecordBatch length when saving empty table to file with compression
May 17, 2023
Describe the bug, including details regarding any error messages, version, and platform.
This might be more of a usage question since I couldn't find anything in the format docs on how to set the length field with compression.
The issue is that if I try to read an empty table with the Julia extension it just hangs. The reason for this seems to be that it only checks the length field in the RecordBatch when deciding whether to attempt to decode and not the length read from the first 8 bytes of the data.
The file created by the code below is readable by both pyarrow and the java implementation, so chances are that the Julia implementation is doing it wrong (I will open an issue there as well). Is there some reference to how one shall interpret the length field in RecordBatch when using compression?
Code to create an empty table in case I'm doing something wrong
When I tried saving a compressed empty table using pyarrow I got 0 as the length field and the Julia implementation could read the table without hanging.
Disclaimer: I don't have a working python installation so I did this though PythonCall. Hopefully I managed to remove all the Julia-isms so that it runs in python:
Component(s)
Java
The text was updated successfully, but these errors were encountered: