Add fabric-cosmos-spark-auth_4-0_2-13 for Spark 4.0 / Fabric Runtime 2.0#49096
Merged
xinlian12 merged 6 commits intoAzure:mainfrom May 8, 2026
Merged
Conversation
Add Spark 4.0 / Scala 2.13 variant of the Fabric Cosmos Spark account data resolver, enabling Microsoft Entra ID authentication for Fabric Runtime 2.0 users. New module: fabric-cosmos-spark-auth_4-0_2-13 - Identical Scala source to fabric-cosmos-spark-auth_3 - Updated dependencies to Scala 2.13 (_2.12 → _2.13) - Java 17+ required (Spark 4.0 requirement) - Depends on azure-cosmos-spark_4-0_2-13 connector - Wired into CI (ci.yml), versioning, and parent POM Implements Azure#48884 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Cosmos Spark “Fabric account data resolver” module targeting Spark 4.0 / Scala 2.13 (Fabric Runtime 2.0), and wires it into Cosmos build/release infrastructure.
Changes:
- Added new module
fabric-cosmos-spark-auth_4-0_2-13(POM, Scala implementation, resources, README/CHANGELOG, scalastyle config). - Registered the new module in
sdk/cosmos/pom.xml, Cosmos CI pipeline artifact list, and versioning metadata. - Added
synapseutils_2.13toexternal_dependencies.txtfor dependency tracking.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/cosmos/pom.xml | Includes the new Fabric Spark 4.0/2.13 auth module in the Cosmos multi-module build. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/src/main/scala/com/azure/cosmos/spark/fabric/FabricAccountDataResolver.scala | Implements the Fabric AccountDataResolver for Entra ID access token auth in Spark 4.0 environments. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/src/main/scala/com/azure/cosmos/spark/fabric/BasicLoggingTrait.scala | Adds basic SLF4J logging helpers used by the resolver. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/src/main/resources/META-INF/services/com.azure.cosmos.spark.AccountDataResolver | Registers the resolver via Java ServiceLoader. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/src/main/resources/fabric-cosmos-spark-auth_4-0_2-13.properties | Publishes name/version build properties for the artifact. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/scalastyle_config.xml | Adds Scala style configuration for the new module. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/README.md | Documents usage/config for the Spark 4.0/2.13 resolver. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/pom.xml | Defines dependencies/build (Scala compilation, shading, Java 17 targeting) for the new artifact. |
| sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/CHANGELOG.md | Introduces release history entry for the new module. |
| sdk/cosmos/ci.yml | Adds CI triggers and a release artifact entry for the new module. |
| eng/versioning/version_client.txt | Adds the new module to version tracking. |
| eng/versioning/external_dependencies.txt | Adds synapseutils_2.13 dependency entry for Cosmos. |
- Fix doc links to point to azure-cosmos-spark_3/docs/ (existing location) - Fix grammar: 'signed-in user' -> 'a signed-in user' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
synapseutils_2.13:1.5.4 does not exist on Maven Central. The earliest available version for the _2.13 variant is 1.6.2. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…4-0_2-13 Set cosmos.spark.skip=true for JDK < 17, matching the pattern used by azure-cosmos-spark_4-0_2-13 and azure-cosmos-spark_4-1_2-13. This flows through maven.main.skip to skip both the Java compiler (maven-compiler-plugin) and the Scala compiler (scala-maven-plugin), which supports maven.main.skip. Without this, the scala-maven-plugin attempts to compile with -release 17 on JDK 8/11, causing build failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
@sdkReviewAgent |
xinlian12
commented
May 8, 2026
xinlian12
commented
May 8, 2026
Member
Author
|
✅ Review complete (30:28) Posted 2 inline comment(s). Steps: ✓ context, correctness, cross-sdk, design, history, past-prs, synthesis, test-coverage |
Add the new module's README to known_content_issues to prevent CI doc validation failures, matching the existing fabric-cosmos-spark-auth_3 entry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
alzimmermsft
approved these changes
May 8, 2026
weshaggard
approved these changes
May 8, 2026
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.
Closes #48884
Summary
Add Spark 4.0 / Scala 2.13 variant of the Fabric Cosmos Spark account data resolver (
fabric-cosmos-spark-auth_4-0_2-13), enabling Microsoft Entra ID authentication for Fabric Runtime 2.0 users.What's New
fabric-cosmos-spark-auth_4-0_2-13fabric-cosmos-spark-auth_3azure-cosmos-spark_4-0_2-13connectorcosmos-spark-version = 4.0scalaVersion = 2.13.17Files Changed
sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/(pom.xml, CHANGELOG.md, README.md, scalastyle_config.xml, Scala sources, resources)sdk/cosmos/ci.yml— trigger/pr paths, release parameter, artifact entryeng/versioning/version_client.txt,eng/versioning/external_dependencies.txtsdk/cosmos/pom.xml— added moduleNotes
synapseutils_2.13added toexternal_dependencies.txt— this artifact is provided by the Fabric Runtime 2.0 environment at runtime{name}_{spark-major}-{spark-minor}_{scala-major}-{scala-minor}Generated by coding-agent-harness