Add RFC for Arrow Flight SQL endpoint - #63
Draft
nielspardon wants to merge 1 commit into
Draft
Conversation
nielspardon
marked this pull request as draft
July 2, 2026 09:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC-0024: Arrow Flight SQL endpoint for Presto
This PR proposes an optional Arrow Flight SQL endpoint for Presto. When enabled, the coordinator exposes an Apache Arrow Flight SQL service alongside the existing HTTP/REST client protocol, so clients can query Presto over Flight SQL — most notably via ADBC drivers — and receive results as native Apache Arrow record batches instead of row-oriented JSON.
The endpoint is off by default and purely additive: the REST client protocol, existing clients, the JDBC driver, and SQL grammar are all unchanged.
Why
This is the complement of RFC-0004: RFC-0004 makes Presto a Flight client of other systems; this makes Presto a Flight server for its own query results.
Key design decisions
Contents
Summary, background (goals/non-goals), proposed implementation (modules, Flight SQL action table, code flow + pseudocode, Presto↔Arrow type mapping, auth, phasing, config), metrics, alternatives considered, adoption plan, and test plan.
Feedback welcome — particularly on the deployment model (embedded vs gateway), the type-mapping table, and the phase-2 worker-streaming direction.