-
Notifications
You must be signed in to change notification settings - Fork 821
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
Validation error when manually copying array data for a slice array #940
Comments
@alamb in case you have thoughts, since this looks to be in the new validation code. |
@bjchambers sounds like a bug introduced in #810 -- are you planning to look at it, or shall I? |
I haven't looked into it much. If you're able that's great otherwise I did see a comment near the failure that is suspicious (something about comparing length to length plus offset). But I'm not sure about the intended behavior. |
I'll look into it tomorrow first thing in the morning
…On Wed, Nov 10, 2021 at 5:33 PM Ben Chambers ***@***.***> wrote:
I haven't looked into it much. If you're able that's great otherwise
I did see a comment near the failure that is suspicious (something about
comparing length to length plus offset). But I'm not sure about the
intended behavior.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#940 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADXZMLIM65IKVQX74J3C7DULLXKTANCNFSM5HYUX4IQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@bjchambers -- PR with proposed fix is #942 |
Describe the bug
The only commit in this branch https://github.com/bjchambers/arrow-rs/tree/reproduce-validation-error demonstrates the issue. See the added test https://github.com/bjchambers/arrow-rs/blob/reproduce-validation-error/arrow/src/array/data.rs#L1648 here.
Specifically, it creates a struct array, it slices it, then it gets all of the data from that array and attempts to create an identical array data. This fails in the validation due as follows:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The array data can be constructed since it is a copy of existing (valid) data.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: