Azure/azure-cosmosdb-spark

Null values cannot be written to cosmos db collection

sani-sani opened this issue · 0 comments

Hi
Im using Apache Spark 2.4.5, Scala 2.11.
If there is any null value for a property in json, that property itself will not get written in to the db collection
Please let me know if this can be resolved.
There is a workaround of applying na.fill and make all the null values to empty string and then if we write in to collection , that property will display as "" value.
But my requirement is to keep the null value as it is and write in to collection