Skip to content

Add Flight session messages and SQL update hint - #11500

Open
Phoenix500526 wants to merge 1 commit into
apache:mainfrom
Phoenix500526:format/code-update
Open

Phoenix500526 wants to merge 1 commit into
apache:mainfrom
Phoenix500526:format/code-update

Conversation

@Phoenix500526

@Phoenix500526 Phoenix500526 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Flight clients need protocol messages for server session options. A prepared statement result can also tell a Flight SQL client whether to use the query or update command.

What changes are included in this PR?

  • Add experimental session option and close session messages, regenerate the Rust bindings, and expose the new types from arrow-flight.
  • Add the optional is_update field to the prepared statement result and update the example and test initializers.
  • Carry forward the format documentation and Go package metadata updates from Sync Arrow format documentation and Go metadata #11499.

Are these changes tested?

No dedicated tests were added for the new protobuf fields. The existing Flight and Flight SQL unit, integration, and documentation tests pass with all features, including the updated prepared statement examples.

Are there any significant user-facing changes?

The new session message types are public. The optional is_update field is wire compatible, but adding it to a public Rust struct requires downstream struct literals to supply a value. The Go package path change is described in #11499.

AI assistance was used to review the generated Rust bindings and prepare this PR.

@github-actions github-actions Bot added arrow-flight Changes to the arrow-flight crate arrow-ipc arrow-ipc crate labels Oct 10, 2026
@Phoenix500526

Copy link
Copy Markdown
Contributor Author

CC @Jefffrey

Expose Flight session messages for clients that manage server state.
The optional SQL hint lets clients choose the prepared statement
command when the server provides that information.
@github-actions github-actions Bot removed the arrow-ipc arrow-ipc crate label Oct 11, 2026
@Jefffrey Jefffrey added api-change Breaking API change, needs to wait for a major version release next-major-release the PR has API changes and it waiting on the next major version labels Oct 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change Breaking API change, needs to wait for a major version release arrow-flight Changes to the arrow-flight crate next-major-release the PR has API changes and it waiting on the next major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update format files

2 participants