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

Improve the error message for casting between struct and non-struct types #6919

Merged
merged 1 commit into from
Dec 30, 2024

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
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