Skip to content

Add Thrift V10 batch parameter wire model - #1602

Merged
sreekanth-db merged 3 commits into
mainfrom
thrift-v10-wire-model
Aug 6, 2026
Merged

Add Thrift V10 batch parameter wire model#1602
sreekanth-db merged 3 commits into
mainfrom
thrift-v10-wire-model

Conversation

@sreekanth-db

Copy link
Copy Markdown
Collaborator

Description

Add the Thrift V10 wire model required for native parameter batches. The generated bindings now expose SPARK_CLI_SERVICE_PROTOCOL_V10 and nested batchParameters, and OpenSession advertises V10 while preserving server negotiation to older supported versions.

The bindings were regenerated with Apache Thrift 0.23.0 from the connector IDL proposed in https://github.com/databricks-eng/universe/pull/2357213, matching the backend contract introduced by https://github.com/databricks-eng/runtime/pull/195829.

Testing

  • mvn test -pl jdbc-core -Dtest=DatabricksThriftServiceClientTest,ProtocolFeatureUtilTest,ThriftV10WireModelTest -Ddependency-check.skip=true — 210 passed
  • Full jdbc-core suite — 3,594 passed, 88 skipped
  • mvn clean install -DskipTests -Ddependency-check.skip=true — passed
  • mvn spotless:apply and git diff --check — passed
  • isaac review --uncommitted — APPROVE, zero findings

Additional Notes to the Reviewer

This PR adds protocol negotiation and generated wire models only. Native executeBatch() routing, configuration, and result handling will follow separately.

Most generated-file changes update the common generation date; TExecuteStatementReq and TProtocolVersion contain the substantive IDL changes.

NO_CHANGELOG=true

Regenerate the Thrift bindings with batchParameters support and advertise V10 while preserving negotiated compatibility with older servers.

Signed-off-by: Sreekanth Vadigi <sreekanth.vadigi@databricks.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No issues identified by the review bot.

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No issues identified by the review bot.

Refresh recorded OpenSession request matchers to advertise protocol V10 while preserving the existing negotiated responses.

Signed-off-by: Sreekanth Vadigi <sreekanth.vadigi@databricks.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No issues identified by the review bot.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

JDBC integration tests triggered (replay, thrift + sea). View workflow runs.

1 similar comment
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

JDBC integration tests triggered (replay, thrift + sea). View workflow runs.

@sreekanth-db
sreekanth-db merged commit cbc92bc into main Aug 6, 2026
38 checks passed
@sreekanth-db
sreekanth-db deleted the thrift-v10-wire-model branch August 6, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants