Skip to content

Add Thrift V10 batch parameter wire model - #1602

Open
sreekanth-db wants to merge 2 commits into
mainfrom
thrift-v10-wire-model
Open

Add Thrift V10 batch parameter wire model#1602
sreekanth-db wants to merge 2 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.

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.

1 participant