Skip to content

chore(arrow-flight-sql): deprecate register_sql_info from FlightSqlService - #10904

Merged
Jefffrey merged 5 commits into
apache:mainfrom
mnpw:mnpw/remove-register-sql-info
Sep 24, 2026
Merged

Jefffrey merged 5 commits into
apache:mainfrom
mnpw:mnpw/remove-register-sql-info

Conversation

@mnpw

@mnpw mnpw commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

N/A

Rationale for this change

FlightSqlService::register_sql_info appears to be stale artefact and it is effectively a no-op in the trait definition. It appears to be carried over from Go's BaseServer implementation.

Since FlightSqlService intends to represent Go's Server implementation instead it makes sense to remove deprecate this method from FlightSqlService.

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 what FlightSqlService trait should be doing.

What changes are included in this PR?

Remove register_sql_info from FlightSqlService

Deprecate FlightSqlService::register_sql_info since 60.1.0 and give it a default no-op implementation.

Are these changes tested?

Tested via -

cargo test -p arrow-flight --all-features

Are there any user-facing changes?

Yes. This removes a public trait method. Implementors that currently define register_sql_info as part of their FlightSqlService implementation must remove it.

Yes, but non-breaking. register_sql_info is deprecated and now has a default implementation, so implementors no longer need to define it. Existing implementations keep compiling with a deprecation warning.

@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-flight arrow-flight crate labels Aug 28, 2026
@Jefffrey Jefffrey added the api-change Breaking API change, needs to wait for a major version release label Aug 29, 2026

@Rich-T-kid Rich-T-kid left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What are the downsides to keeping it? Since this is would be a breaking API change we'd need to depreciate it first.

@mnpw

mnpw commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing!

What are the downsides to keeping it?

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.

Since this is would be a breaking API change we'd need to depreciate it first.

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 Rich-T-kid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense to me, thanks @mnpw

@Rich-T-kid Rich-T-kid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the next release is 60 I believe. I may be wrong.

Comment thread arrow-flight/src/sql/server.rs Resolved
@Jefffrey Jefffrey removed the api-change Breaking API change, needs to wait for a major version release label Sep 5, 2026
@Jefffrey Jefffrey changed the title chore(arrow-flight-sql): remove register_sql_info from FlightSqlService chore(arrow-flight-sql): deprecate register_sql_info from FlightSqlService Sep 5, 2026
Comment thread arrow-flight/src/sql/server.rs Resolved
@mnpw

mnpw commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the deprecation version and message, thanks!

@mnpw
mnpw force-pushed the mnpw/remove-register-sql-info branch from 8305476 to 530257b Compare September 7, 2026 06:12
@mnpw
mnpw requested review from Jefffrey and Rich-T-kid September 7, 2026 06:13
@mnpw

mnpw commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@Jefffrey can we merge this change

@mnpw
mnpw force-pushed the mnpw/remove-register-sql-info branch from 530257b to c6ee269 Compare September 23, 2026 06:42
@mnpw

mnpw commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

Since a newer version has released I've updated the version for deprecation message cc: @Jefffrey

@mnpw

mnpw commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

Bumping for a review, thanks! @alamb @etseidl

@Jefffrey
Jefffrey merged commit 83ebd72 into apache:main Sep 24, 2026
20 checks passed
@Jefffrey

Copy link
Copy Markdown
Contributor

thanks @mnpw & @Rich-T-kid

@alamb alamb added the enhancement New feature/addition label Oct 20, 2026
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 arrow-flight crate enhancement New feature/addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants