Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosmos spark 4.4.0 release #25267

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
4 changes: 2 additions & 2 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ com.azure:azure-core-serializer-json-gson;1.1.8;1.2.0-beta.1
com.azure:azure-core-serializer-json-jackson;1.2.9;1.3.0-beta.1
com.azure:azure-core-test;1.7.4;1.8.0-beta.1
com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.16;1.0.0-beta.17
com.azure:azure-cosmos;4.20.1;4.21.0-beta.1
com.azure:azure-cosmos;4.20.1;4.21.0-snapshot.1
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.4.0-beta.1;4.4.0-beta.1
com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.4.0;4.4.0
com.azure:azure-cosmos-encryption;1.0.0-beta.9;1.0.0-beta.10
com.azure:azure-data-appconfiguration;1.2.3;1.3.0-beta.1
com.azure:azure-data-appconfiguration-perf;1.0.0-beta.1;1.0.0-beta.1
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos-encryption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Licensed under the MIT License.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>

<dependency>
Expand Down
9 changes: 8 additions & 1 deletion sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## Release History

### 4.4.0-beta.1 (Unreleased)
### 4.4.0 (2021-11-10)
#### New Features
* Added support for writing an RDD to Cosmos with opaque json payload to avoid risk of unwanted modification due to schema-inference/mapping - See [PR 24319](https://github.com/Azure/azure-sdk-for-java/pull/24319).
* Added an option to control how null/empty-default values are serialized to json documents in Cosmos - See [PR 24797](https://github.com/Azure/azure-sdk-for-java/pull/24797).
#### Key Bug Fixes
* Fixed a regression (compared to Cosmos DB connector on Spark 2.4) that resulted in casting error `["java.lang.Integer" cannot be cast to "java.sql.Date"]` when trying to write RDD row with an Integer value if the schema's `FiledType` is Date for this column. See [PR 25156](https://github.com/Azure/azure-sdk-for-java/pull/25156)
* Fixed issue that could result in `PoolAcquirePendingLimitException` error especially on Spark clusters which large executors (high number of cores per executor) See [PR 25047](https://github.com/Azure/azure-sdk-for-java/pull/25047)
* Improved robustness for bulk ingestion jobs to reduce the memory footprint. See [PR 25215](https://github.com/Azure/azure-sdk-for-java/pull/25215)

### 4.3.1 (2021-09-13)
#### Key Bug Fixes
Expand Down
5 changes: 3 additions & 2 deletions sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new

| Connector | Minimum Spark Version | Minimum Java Version | Supported Scala Versions | Supported Databricks Runtimes |
| ------------- | --------------------- | -------------------- | ----------------------- | ----------------------------- |
| 4.4.0 | 3.1.1 | 8 | 2.12 | 8.\*, 9.\* |
| 4.3.1 | 3.1.1 | 8 | 2.12 | 8.\*, 9.\* |
| 4.3.0 | 3.1.1 | 8 | 2.12 | 8.\*, 9.\* |
| 4.2.0 | 3.1.1 | 8 | 2.12 | 8.\* |
Expand All @@ -38,11 +39,11 @@ https://github.com/Azure/azure-sdk-for-java/issues/new
### Download

You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 8 from Maven:
`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.3.1`
`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.4.0`

You can also integrate against Cosmos DB Spark Connector in your SBT project:
```scala
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.3.1"
libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.4.0"
```

Cosmos DB Spark Connector is available on [Maven Central Repo](https://search.maven.org/search?q=g:com.azure.cosmos.spark).
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.azure.cosmos.spark</groupId>
<artifactId>azure-cosmos-spark_3-1_2-12</artifactId>
<version>4.4.0-beta.1</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;current} -->
<version>4.4.0</version> <!-- {x-version-update;com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;current} -->
<packaging>jar</packaging>
<name>OLTP Spark Connector for Azure Cosmos DB SQL API</name>
<description>OLTP Spark Connector for Azure Cosmos DB SQL API</description>
Expand Down Expand Up @@ -61,7 +61,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>
<dependency>
<groupId>org.scala-lang.modules</groupId>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Release History

### 4.21.0-beta.1 (Unreleased)
### 4.21.0-snapshot.1 (Unreleased)

#### Features Added

Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Licensed under the MIT License.

<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<name>Microsoft Azure SDK for SQL API of Azure Cosmos DB Service</name>
<description>This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API</description>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-spring-data-cosmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.21.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
<version>4.21.0-snapshot.1</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>
</dependencies>

Expand Down