-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-18247: [JS] fix: RangeError crash in Vector.toArray() #14587
ARROW-18247: [JS] fix: RangeError crash in Vector.toArray() #14587
Conversation
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename pull request title in the following format?
or
See also: |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the pull request. Please add a unit test so we make sure this issue doesn't surface again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, thanks for the fix @sarfata!
This fixes a bug which happens when a Vector has been created with multiple data blobs and at least one of them has been padded.
1da239a
to
8db45ee
Compare
Co-authored-by: Paul Taylor <[email protected]>
Co-authored-by: Paul Taylor <[email protected]>
Co-authored-by: Paul Taylor <[email protected]>
@domoritz fixed. 🤦 I did some last minute cleanup and added this test to show exactly the key condition for this bug but ended up with a failing test. Sorry about this. |
This fixes a bug which happens when a Vector has been created with multiple data blobs and at least one of them has been padded.
See https://observablehq.com/d/14488c116b338560 for a reproduction of the error and more details.