-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[C#] Accessing values of a decimal array doesn't account for the array offset #41199
Comments
CurtHagenlocher
pushed a commit
that referenced
this issue
Apr 15, 2024
### Rationale for this change Fixes a bug where getting values from a sliced `Decimal128Array` or `Decimal256Array` would return the wrong values. ### What changes are included in this PR? Updates the various `Get*` methods in `Decimal128Array` and `Decimal256Array` to account for the array offset. ### Are these changes tested? Yes, I've added new unit tests. ### Are there any user-facing changes? Yes, this is a user-facing bug fix. * GitHub Issue: #41199 Authored-by: Adam Reeve <adreeve@gmail.com> Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
Issue resolved by pull request 41200 |
tolleybot
pushed a commit
to tmct/arrow
that referenced
this issue
May 2, 2024
…pache#41200) ### Rationale for this change Fixes a bug where getting values from a sliced `Decimal128Array` or `Decimal256Array` would return the wrong values. ### What changes are included in this PR? Updates the various `Get*` methods in `Decimal128Array` and `Decimal256Array` to account for the array offset. ### Are these changes tested? Yes, I've added new unit tests. ### Are there any user-facing changes? Yes, this is a user-facing bug fix. * GitHub Issue: apache#41199 Authored-by: Adam Reeve <adreeve@gmail.com> Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
vibhatha
pushed a commit
to vibhatha/arrow
that referenced
this issue
May 25, 2024
…pache#41200) ### Rationale for this change Fixes a bug where getting values from a sliced `Decimal128Array` or `Decimal256Array` would return the wrong values. ### What changes are included in this PR? Updates the various `Get*` methods in `Decimal128Array` and `Decimal256Array` to account for the array offset. ### Are these changes tested? Yes, I've added new unit tests. ### Are there any user-facing changes? Yes, this is a user-facing bug fix. * GitHub Issue: apache#41199 Authored-by: Adam Reeve <adreeve@gmail.com> Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug, including details regarding any error messages, version, and platform.
Decimal128Array.GetValue
,GetString
andGetSqlDecimal
account for the array offset in the null check but not when getting the actual value.Decimal256Array.GetValue
,GetString
andTryGetSqlDecimal
have the same issue.Component(s)
C#
The text was updated successfully, but these errors were encountered: