-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RecordBatch: Serialization of sliced record using StreamWriter produces incorrect resut #1528
Comments
Can you confirm that the issue is just the size of the written file, and not a correctness problem - i.e. the data is larger than it could be, but still round-trips correctly? If so, I think as you've suggested this might be a duplicate of #208. |
Is there any plan to resolve this issue? For my use case, I care specifically that I can write multiple smaller IPC messages rather than a single large one. I hoped to achieve this by slicing the large |
As stated above this isn't a bug per se, but rather that the IPC format faithfully sends the representation of the arrays over the wire - even if some portion of the values have been logically sliced away. I think some feature that truncates buffers, rewriting offsets, etc... is definitely possible as described in #208. I personally have very limited time to spend on this, but perhaps @nevi-me or @viirya might have some spare cycles? |
I will try to take a look this weekend. |
When you slice
RecordBatch
and serialize it withStreamWriter
, it produces an incorrect result. I'm usingarrow = "11.1.0"
To reproduce once can use the following test:
As you can see the sliced one has almost the same size as
big_record_batch
, but I would expect it to be the same size assmall_record_batch
:This can be related to Add support for writing sliced arrays and flight_data_from_arrow_batch sends too much data
The text was updated successfully, but these errors were encountered: