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.
vectorFromArray can produce an invalid FixedSizeList array, where the values length doesn't match the list_size * length. This makes other implementations error when they receive an IPC batch from JS.
This only seems to happen when the null is at the end. If it's at the beginning, it works fine.
functionpatchedVectorFromArray(data,type){// If FSL type with floatif(arrow.DataType.isFixedSizeList(type)&&arrow.DataType.isFloat(type.valueType)){letextendedData=[...data,newArray(type.listSize).fill(0.0)];letarray=arrow.vectorFromArray(extendedData,type);returnarray.slice(0,data.length);}else{returnarrow.vectorFromArray(data,type);}}
Hi @wjones127, I put up a PR for this. When testing, I noticed the issue wasn't constrained to FixedSizeList and that it was a more general behavior of the FixedSizeListBuilder. I didn't tag you as a reviewer but if you wanted to have a look that'd be very welcome.
Describe the bug, including details regarding any error messages, version, and platform.
vectorFromArray
can produce an invalid FixedSizeList array, where the values length doesn't match thelist_size * length
. This makes other implementations error when they receive an IPC batch from JS.This only seems to happen when the null is at the end. If it's at the beginning, it works fine.
We caught this when reading via IPC into arrow-rs.
Component(s)
JavaScript
The text was updated successfully, but these errors were encountered: