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

Add default implementations to the FlightSqlService trait #4485

Merged

Conversation

rossjones
Copy link
Contributor

@rossjones rossjones commented Jul 8, 2023

Which issue does this PR close?

Closes #4372

Rationale for this change

This trait is on the large side, and requires lots of boilerplate to implement. It would benefit from default implementations of all methods.

What changes are included in this PR?

Adds default implementations for all methods of FlightSqlService so they now return Status::unimplemented along with a description of " has no default implementation" following the wording in other methods that do have a default impl.

Are there any user-facing changes?

@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Jul 8, 2023
Copy link
Member

@xudong963 xudong963 left a comment

Choose a reason for hiding this comment

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

Make sense, need to fix Clippy

@rossjones rossjones force-pushed the default-flightsqlservice-implementations branch from 91b0968 to 7935cf9 Compare July 8, 2023 10:49
The trait currently does not have many default implementations, but it
does have a lot of methods.  This PR adds default implementations for
all methods returning Status::unimplemented to fix apache#4372
@rossjones rossjones force-pushed the default-flightsqlservice-implementations branch from 7935cf9 to e78575a Compare July 8, 2023 10:54
@rossjones
Copy link
Contributor Author

Make sense, need to fix Clippy

Thanks, should be done now.

@tustvold tustvold merged commit 08a57e9 into apache:master Jul 8, 2023
@rossjones rossjones deleted the default-flightsqlservice-implementations branch July 9, 2023 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default FlightSqlService Implementations
3 participants