Skip to content

Conversation

@FabianMeiswinkel
Copy link
Member

@FabianMeiswinkel FabianMeiswinkel commented Oct 22, 2025

Description

Modifies build of Spark Connector to allow adding dual-compilation for scala 2.12 and 2.13 later.

Removes the scala version suffix from artifacts for the shared source project (now azure-cosmos-spark_3)
Adds an intermediary pom-packaging project for Spark 3-5 - to later allow having to children for azure-cosmos-spark_3-5_2-12 and azure-cosmos-spark_3-5_2-13
This is just preparation work for adding sclaa 2.13 to reduce the noise in the second PR - and make reviews easier.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@FabianMeiswinkel FabianMeiswinkel requested review from Copilot and removed request for Copilot October 22, 2025 01:36
@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@Copilot Copilot AI review requested due to automatic review settings October 22, 2025 01:40
@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

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

This PR refactors the Spark connector build structure to prepare for dual-compilation support for Scala 2.12 and 2.13. The changes reorganize the module hierarchy by removing Scala version suffixes from shared source artifacts and introducing intermediary pom-packaging projects for version-specific builds.

Key Changes:

  • Renamed azure-cosmos-spark_3_2-12 to azure-cosmos-spark_3 (shared source, no Scala version suffix)
  • Added intermediary pom-packaging project azure-cosmos-spark_3-5 for Spark 3.5
  • Updated all child projects to reference the renamed parent modules

Reviewed Changes

Copilot reviewed 13 out of 278 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/cosmos/pom.xml Updated module list to include new azure-cosmos-spark_3 and azure-cosmos-spark_3-5 modules
sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/SparkBridgeInternal.scala Added blank line for formatting consistency
sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml Renamed artifact from azure-cosmos-spark_3_2-12 to azure-cosmos-spark_3 with version change
sdk/cosmos/azure-cosmos-spark_3_2-12/CHANGELOG.md Updated version number to reflect new artifact versioning
sdk/cosmos/azure-cosmos-spark_3/CHANGELOG.md Added CHANGELOG for new shared source module
sdk/cosmos/azure-cosmos-spark_3-5_2-12/pom.xml Updated parent reference and removed duplicate build configuration
sdk/cosmos/azure-cosmos-spark_3-5/scalastyle_config.xml Added Scalastyle configuration for new intermediary module
sdk/cosmos/azure-cosmos-spark_3-5/pom.xml Added new intermediary pom with build configuration and dependencies
sdk/cosmos/azure-cosmos-spark_3-5/README.md Added README for new module
sdk/cosmos/azure-cosmos-spark_3-5/CONTRIBUTING.md Added contribution guidelines for new module
sdk/cosmos/azure-cosmos-spark_3-4_2-12/pom.xml Updated parent references to new shared source module
sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml Updated parent references to new shared source module
eng/versioning/version_client.txt Added version entries for new artifacts

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - kafka

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - kafka

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tvaron3 tvaron3 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@xinlian12 xinlian12 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

@FabianMeiswinkel FabianMeiswinkel merged commit c186af3 into Azure:main Oct 23, 2025
51 checks passed
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.

5 participants