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 error message when no common type #13829

Merged
merged 2 commits into from
Aug 25, 2022

Conversation

findepi
Copy link
Member

@findepi findepi commented Aug 24, 2022

Improve error message when no common type for coalesce, CASE, ARRAY, IN
list.

Previously, the "last" common type was reported, without telling what
are the input types.

This also simplifies message construction in the coerceToSingleType
helper method. Previously, the message pattern was defined by the
caller, but message arguments were defined by the implementation.

Message is important for users, so should be tested, besides error code.
Many tests in `TestAnalyzer` already do that, this commit adds more
assertions, but some still outstanding.
@findepi
Copy link
Member Author

findepi commented Aug 24, 2022

previous CI run hit #13633

Improve error message when no common type for coalesce, CASE, ARRAY, IN
list.

Previously, the "last" common type was reported, without telling what
are the input types.

This also simplifies message construction in the `coerceToSingleType`
helper method. Previously, the message pattern was defined by the
caller, but message arguments were defined by the implementation.
@findepi findepi force-pushed the findepi/coalesce-message branch from 03a90cf to f0e12bb Compare August 24, 2022 20:48
@findepi findepi merged commit b4f77ce into trinodb:master Aug 25, 2022
@findepi findepi deleted the findepi/coalesce-message branch August 25, 2022 07:28
@github-actions github-actions bot added this to the 394 milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants