Skip to content

Commit 7c56b44

Browse files
Merge pull request Azure#407 from revinjchalil/2.4
Fixes null pointer exception in streaming schema inference
2 parents ade7f71 + 40362ce commit 7c56b44

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 3.3.1
2+
- Fixes null pointer exception in streaming schema inference.
3+
14
### 3.3.0
25
- Adds a new config option "changefeedstartfromdatetime" that can be used to specify from when the changefeed should be processed. See [Config options](https://github.com/Azure/azure-cosmosdb-spark/wiki/Configuration-references) for details.
36

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121
<groupId>com.microsoft.azure</groupId>
2222
<artifactId>azure-cosmosdb-spark_2.4.0_2.11</artifactId>
2323
<packaging>jar</packaging>
24-
<version>3.3.0</version>
24+
<version>3.3.1</version>
2525
<name>${project.groupId}:${project.artifactId}</name>
2626
<description>Spark Connector for Microsoft Azure CosmosDB</description>
2727
<url>http://azure.microsoft.com/en-us/services/documentdb/</url>

src/main/scala/com/microsoft/azure/cosmosdb/spark/Constants.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
package com.microsoft.azure.cosmosdb.spark
2424

2525
object Constants {
26-
val currentVersion = "2.4.0_2.11-3.2.0"
26+
val currentVersion = "2.4.0_2.11-3.3.1"
2727
val userAgentSuffix = s" SparkConnector/$currentVersion"
2828
}

src/main/scala/com/microsoft/azure/cosmosdb/spark/streaming/CosmosDBSource.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ private[spark] class CosmosDBSource(sqlContext: SQLContext,
8888
val helperDfConfig: Map[String, String] = streamConfigMap
8989
.-(CosmosDBConfig.ChangeFeedStartFromTheBeginning)
9090
.+((CosmosDBConfig.ChangeFeedStartFromTheBeginning, String.valueOf(false)))
91-
.-(CosmosDBConfig.ChangeFeedStartFromDateTime).
92-
+((CosmosDBConfig.ChangeFeedStartFromDateTime,null))
91+
.-(CosmosDBConfig.ChangeFeedStartFromDateTime)
9392
.-(CosmosDBConfig.ReadChangeFeed).
9493
+((CosmosDBConfig.ReadChangeFeed, String.valueOf(false)))
9594
.-(CosmosDBConfig.QueryCustom).

0 commit comments

Comments
 (0)