Skip to content

Unify bounded SEA inline Arrow chunk handling - #1734

Merged
rahuls-db merged 2 commits into
databricks:mainfrom
rahuls-db:rahul-singhal/unify-sea-inline-chunk-provider
Oct 22, 2026
Merged

rahuls-db merged 2 commits into
databricks:mainfrom
rahuls-db:rahul-singhal/unify-sea-inline-chunk-provider

Conversation

@rahuls-db

@rahuls-db rahuls-db commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Route every inline Arrow response through SeaInlineArrowChunkProvider when bounded SEA is enabled, including hybrid CloudFetch responses that return their initial data inline. This removes the remaining split between the legacy inline provider and the bounded SEA continuation path.

Also handle the provider end-of-stream transition in ArrowStreamResult.next() without dereferencing a missing chunk.

Testing

Added a hybrid-inline test that asserts SeaInlineArrowChunkProvider is selected and consumes both the initial and continuation chunks. git diff --check passes. Full CI will run on this PR.

Comparator Tests
Validated Thrift-versus-SEA parity on the staging warehouse with CloudFetch both enabled and disabled.

  • 15,242 comparisons per mode across nine configurations, excluding USE_QUERY_FOR_METADATA and PRO_WAREHOUSE
  • CloudFetch-enabled and disabled runs produced identical results
  • No differences in query results, row counts, Arrow data, chunk traversal, compression, complex types, geospatial data, or volume operations
  • All comparator suites completed without execution errors

The reported differences were existing Thrift-versus-SEA behavior unrelated to this PR:

  • 756 getTables/getColumns differences: for empty-string catalog/schema arguments, Thrift throws error 1003 while SEA returns an empty result set.

  • 275 primary/imported/exported-key metadata differences: both clients reject invalid inputs, but Thrift returns a server stack trace while SEA returns a concise validation error.

  • 43 negative-test differences: both clients fail as expected but format error messages differently.

  • 1 stale DDL expectation: both clients return the same additional metadata columns.

  • 1 EXPLAIN difference: only dynamically generated expression IDs differ.

    This provides no evidence of a regression from the inline chunk-provider unification.

Telemetry Errors

  • Not applicable — this PR does not add or change a telemetry-visible error.
  • Applicable — the error uses DatabricksDriverErrorCode where appropriate, and any new code is uniquely numbered and tested.
  • Applicable — its driver/server/user classification is linked, or maintainer help is requested because the author cannot access the classification.

Additional Notes to the Reviewer

NO_CHANGELOG=true

This is intentionally separate from #1731 so the request-routing behavior and provider unification can be reviewed independently.

@rahuls-db
rahuls-db marked this pull request as ready for review October 20, 2026 17:37
Signed-off-by: Rahul Singhal <[email protected]>
@rahuls-db
rahuls-db requested a review from vuanhphung October 20, 2026 19:47
@rahuls-db
rahuls-db added this pull request to the merge queue Oct 22, 2026
Merged via the queue into databricks:main with commit 30f47d9 Oct 22, 2026
23 of 24 checks passed
@rahuls-db
rahuls-db deleted the rahul-singhal/unify-sea-inline-chunk-provider branch October 22, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants