It is documented here https://www.mongodb.com/docs/spark-connector/current/write-to-mongodb/ that null-valued column will be written into MongoDB. Is there anyway we could bypass this
Before v10 Spark connector, the Spark connector didn’t write null value column into MongoDB. This is changed after v10. There is a tracker ticket to make this configurable: https://jira.mongodb.org/projects/SPARK/issues/SPARK-394
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.