Skip to content

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

@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

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Operation name not included in internal errors -- Internal("Data type Boolean not supported for binary operation on dyn arrays")

3 participants