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

Report current operation when coercion fails #13628

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

findepi
Copy link
Member

@findepi findepi commented Dec 3, 2024

This makes for a more actionable error message.

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Dec 3, 2024
@github-actions github-actions bot added the optimizer Optimizer rules label Dec 3, 2024
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Dec 3, 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.

Thank you @findepi and @Weijun-H -- these are much nicer error messages 💯

datafusion/optimizer/src/analyzer/type_coercion.rs Outdated Show resolved Hide resolved
This makes for a more actionable error message.
@findepi findepi merged commit 55e56c4 into apache:main Dec 4, 2024
25 checks passed
@findepi findepi deleted the findepi/errctx branch December 4, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants