Skip to content
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

method CastToBytes of decimal256Traits does not work #35911

Closed
izveigor opened this issue Jun 5, 2023 · 0 comments · Fixed by #35912
Closed

method CastToBytes of decimal256Traits does not work #35911

izveigor opened this issue Jun 5, 2023 · 0 comments · Fixed by #35912
Assignees
Milestone

Comments

@izveigor
Copy link
Contributor

izveigor commented Jun 5, 2023

Describe the bug, including details regarding any error messages, version, and platform.

The code returns empty array:
arrow.Decimal256Traits.CastToBytes([]decimal256.Num{decimal256.New(0, 0, 0, 10)})
The reason is an error in the line: https://github.com/apache/arrow/blob/main/go/arrow/type_traits_decimal256.go#L62

Component(s)

Go

zeroshade pushed a commit that referenced this issue Jun 6, 2023
### Rationale for this change

### What changes are included in this PR?

### Are these changes tested?
Yes

### Are there any user-facing changes?
Yes

* Closes: #35911

Authored-by: izveigor <izveigor@gmail.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
@zeroshade zeroshade added this to the 13.0.0 milestone Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants