chore(arrow-flight-sql): remove register_sql_info from FlightSqlService - #10904
chore(arrow-flight-sql): remove register_sql_info from FlightSqlService#10904mnpw wants to merge 3 commits into
Conversation
|
Thanks for reviewing!
Keeping the method just adds noise to the trait definition and it's required to implement as there is no trait level default impl. So every implementor ends up adding a mock implementation for this method that likely doesn't do anything.
I've added this method for deprecation along with a default impl so that it doesn't add noise to newer implementations until we can remove this |
Rich-T-kid
left a comment
There was a problem hiding this comment.
makes sense to me, thanks @mnpw
Rich-T-kid
left a comment
There was a problem hiding this comment.
the next release is 60 I believe. I may be wrong.
| #[deprecated( | ||
| since = "59.4.0", | ||
| note = "takes no value to register and has no effect. Use `SqlInfoDataBuilder::append` instead" | ||
| )] | ||
| async fn register_sql_info(&self, _id: i32, _result: &SqlInfo) {} |
There was a problem hiding this comment.
I think this should actually be v60.0.0 right?
Which issue does this PR close?
N/A
Rationale for this change
FlightSqlService::register_sql_infoappears to be stale artefact and it is effectively a no-op in the trait definition. It appears to be carried over from Go'sBaseServerimplementation.Since
FlightSqlServiceintends to represent Go'sServerimplementation instead it makes sense to remove this method fromFlightSqlService.Note: An alternative to removal of this method is change in its signature to
FlightSqlService::register_sql_info(id: SqlInfo, result: SqlInfoValue). I can implement that instead as well but it deviates from whatFlightSqlServicetrait should be doing.What changes are included in this PR?
Remove
register_sql_infofromFlightSqlServiceAre these changes tested?
Tested via -
Are there any user-facing changes?
Yes. This removes a public trait method. Implementors that currently define
register_sql_infoas part of theirFlightSqlServiceimplementation must remove it.