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

Minor: improve error message when ARRAY literals can not be planned #13859

Merged
merged 3 commits into from
Dec 21, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Dec 20, 2024

Which issue does this PR close?

Rationale for this change

There was a problem running substrait tests as they didn't activate the right features in DataFusion:

Error: Internal("Expected a simplified result, but none was found")

This error was confusing as it sounded like a bug and didn't hint at how to fix the problem

What changes are included in this PR?

Improve the error message to be more specific about what is wrong and change from internal to not implemented

Are these changes tested?

Are there any user-facing changes?

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks @alamb

@comphead comphead merged commit 8c48a8c into apache:main Dec 21, 2024
24 checks passed
@alamb
Copy link
Contributor Author

alamb commented Dec 22, 2024

Thank you @comphead

zhuqi-lucas pushed a commit to zhuqi-lucas/arrow-datafusion that referenced this pull request Dec 23, 2024
…pache#13859)

* Minor: improve error message when ARRAY literals can not be planned

* fmt

* Update datafusion/sql/src/expr/value.rs

Co-authored-by: Oleks V <[email protected]>

---------

Co-authored-by: Oleks V <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants