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 messages when operations are not supported #1158

Merged
merged 2 commits into from
Oct 22, 2021

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Oct 21, 2021

Which issue does this PR close?

Closes #1157

Rationale for this change

While working on #1153, i saw this kind of error:

Internal("Data type Boolean not supported for binary operation on dyn arrays")

But it took me a while to figure out what operation was wrong (in this case it was eq)

What changes are included in this PR?

Include the name of the operation in the error message

Are there any user-facing changes?

better error messages

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Oct 21, 2021
@xudong963
Copy link
Member

@alamb Very practical PR! Some tests that relate to these error messages failed.

BTW, I think using error messages in tests to judge maybe not be an elegant style. It is sufficient to test existing functionality.😁 What do you think?

@alamb
Copy link
Contributor Author

alamb commented Oct 21, 2021

BTW, I think using error messages in tests to judge maybe not be an elegant style. It is sufficient to test existing functionality.😁 What do you think?

I think checking error messages in tests is very reasonable 👍 I will update the tests in a bit

@houqp houqp merged commit e6657f0 into apache:master Oct 22, 2021
@alamb alamb deleted the alamb/better_errors branch October 22, 2021 15:30
@houqp houqp added the enhancement New feature or request label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate enhancement New feature or request
Projects
None yet
3 participants