mongo-spark icon indicating copy to clipboard operation
mongo-spark copied to clipboard

New flag 'upsertDocument' to control the insert behavior of writes

Open santhoshsuresh95 opened this issue 3 years ago • 0 comments
trafficstars

'upsertDocument' flag passed as spark option control the insert behavior (provided if 'forceInsert' is set to false)

If true - MongoSpark behavior the same as earlier i.e. inserts / updates when saving a Dataset. If false - MongoSpark does not insert new documents and updates / sets fields for matching documents.

santhoshsuresh95 avatar Sep 23 '22 02:09 santhoshsuresh95