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

Make datafusion-proto match exhaustive #2567

Merged
merged 1 commit into from
May 18, 2022

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

Closes #2565

Rationale for this change

When adding new Expr variants, we should also be adding code to datafusion_proto to handle them but we are not forced into doing this today because the match statement handles the _ case with an error.

What changes are included in this PR?

Make match exhaustive.

Are there any user-facing changes?

No

@andygrove andygrove self-assigned this May 18, 2022
@github-actions github-actions bot added the datafusion Changes in the datafusion crate label May 18, 2022
Copy link
Member

@Ted-Jiang Ted-Jiang left a comment

Choose a reason for hiding this comment

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

+1

@andygrove andygrove merged commit 635d659 into apache:master May 18, 2022
@andygrove andygrove deleted the datafusion-proto-exhaustive branch May 18, 2022 14:03
@alamb
Copy link
Contributor

alamb commented May 18, 2022

🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datafusion_proto crate should have exhaustive match statements for handling Expr
3 participants