I am using Apache Spark 2.3.2v. Below is my use case to perform with CosmosDB using Apache Spark. I am using azure-cosmosdb-spark_2.3.0_2.11_1.3.3 connector.