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: unparser cleanup and new roundtrip test #10150

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

devinjdangelo
Copy link
Contributor

Which issue does this PR close?

related to #9726

Rationale for this change

Unimplemented paths should error not panic. Match arms should be listed explicitly to make discovery of unimplemented paths easier, especially if new enum variants are added the compiler will identify them.

What changes are included in this PR?

  • Replaces some instances of todo!() with not_impl_err!()
  • Explicitly lists all match arms for expr -> SQL expr
  • Adds round trip SQL test that includes some of the newly added expressions

Are these changes tested?

Yes

Are there any user-facing changes?

No - other than preventing panic in some cases

@github-actions github-actions bot added the sql SQL Planner label Apr 20, 2024
Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

Nice 👍

Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

Thanks @devinjdangelo 👍

@alamb alamb merged commit 16e3831 into apache:main Apr 21, 2024
23 checks passed
ccciudatu pushed a commit to hstack/arrow-datafusion that referenced this pull request Apr 26, 2024
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.

4 participants