Skip to content

Conversation

@xinlian12
Copy link
Member

@xinlian12 xinlian12 commented Jan 29, 2026

enableThroughputBucket support in spark

Test

image image

Copilot AI review requested due to automatic review settings January 29, 2026 19:44
@xinlian12 xinlian12 requested review from a team and kirankumarkolli as code owners January 29, 2026 19:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Spark connector support for Cosmos DB server-side throughput control via “throughput buckets”.

Changes:

  • Introduces spark.cosmos.throughputControl.throughputBucket config and parsing logic to distinguish SDK vs server throughput control.
  • Updates container initialization to enable enableServerThroughputControlGroup when throughput bucket config is provided.
  • Adds a unit test validating throughput bucket parsing.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
sdk/cosmos/azure-cosmos-spark_3/src/main/scala/com/azure/cosmos/spark/CosmosConfig.scala Adds config name + parsing, introduces separate SDK/server throughput control config types.
sdk/cosmos/azure-cosmos-spark_3/src/main/scala/com/azure/cosmos/spark/ThroughputControlHelper.scala Enables server throughput control group on the container when throughput bucket config is present.
sdk/cosmos/azure-cosmos-spark_3/src/test/scala/com/azure/cosmos/spark/CosmosConfigSpec.scala Adds a test ensuring throughput bucket is parsed into the server throughput control config.

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants