Skip to content

minor: unparser cleanup and new roundtrip test#10150

Merged
alamb merged 1 commit intoapache:mainfrom
devinjdangelo:unparser-cleanup
Apr 21, 2024
Merged

minor: unparser cleanup and new roundtrip test#10150
alamb merged 1 commit intoapache:mainfrom
devinjdangelo:unparser-cleanup

Conversation

@devinjdangelo
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
ccciudatu pushed a commit to hstack/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