Skip to content

Conversation

@takaebato
Copy link
Contributor

@takaebato takaebato commented Dec 30, 2024

Which issue does this PR close?

Closes #6724.

Rationale for this change

The casting error messages between struct and non-struct types lack details about the types, making debugging harder.

What changes are included in this PR?

Improved error message to include the source and target types of casting.

Are there any user-facing changes?

Yes, the error messages have changed, but documentation updates do not seem necessary.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Dec 30, 2024
@takaebato takaebato changed the title Improve error message for casting between struct and non-struct Improve the error message for casting between struct and non-struct types Dec 30, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @takaebato -- looks great to me

@alamb alamb merged commit 7d9bb37 into apache:main Dec 30, 2024
28 checks passed
CurtHagenlocher pushed a commit to CurtHagenlocher/arrow-rs that referenced this pull request Jan 13, 2025
svencowart pushed a commit to elastiflow/arrow-rs that referenced this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve error message for unsupported cast between struct and other types

2 participants