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

feat(flight-sql): Allow implementations of FlightSqlService to handle custom actions and commands #4463

Merged
merged 3 commits into from
Jun 30, 2023

Conversation

amartins23
Copy link
Contributor

Which issue does this PR close?

Closes #4439.

Rationale for this change

Allows implementations of FlightSqlService to implement custom actions and commands (DoPut, DoExchange). Capability already exists for DoGet.

What changes are included in this PR?

Added the methods do_put_fallback, do_action_fallback and do_exchange_fallback to the trait FlightSqlService, and corresponding use in impl<T: FlightSqlService + Send + 'static> FlightService for T following the same pattern that already existed for do_get/do_get_fallback. Added a method list_custom_actions to allow implementations of the trait FlightSqlService to supply additional custom actions to the result of list_actions in impl<T: FlightSqlService + Send + 'static> FlightService for T.

Are there any user-facing changes?

Yes, extended the API surface of the trait FlightSqlService.

@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Jun 29, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @amartins23 -- this looks good to me

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.

[FlightSQL] Allow implementations of FlightSqlService to handle custom actions and commands
3 participants