Repository navigation
chore(arrow-flight-sql): deprecate register_sql_info from FlightSqlService - #10904
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.
|
Fixed the deprecation version and message, thanks! |
8305476 to
530257b
Compare
|
@Jefffrey can we merge this change |
Co-authored-by: Jeffrey Vo <jeffrey.vo.australia@gmail.com>
530257b to
c6ee269
Compare
|
Since a newer version has released I've updated the version for deprecation message cc: @Jefffrey |
|
thanks @mnpw & @Rich-T-kid |
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 toremovedeprecate 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?
Removeregister_sql_infofromFlightSqlServiceDeprecate
FlightSqlService::register_sql_infosince60.1.0and give it a default no-op implementation.Are these changes tested?
Tested via -
Are there any user-facing changes?
Yes. This removes a public trait method. Implementors that currently defineregister_sql_infoas part of theirFlightSqlServiceimplementation must remove it.Yes, but non-breaking.
register_sql_infois deprecated and now has a default implementation, so implementors no longer need to define it. Existing implementations keep compiling with a deprecation warning.