jackylee-ch opened a new pull request #35815:
URL: https://github.com/apache/spark/pull/35815


   ### Why are the changes needed?
   The `spark.sql.sources.partitionOverwriteMode` allows us to overwrite the 
existing data of the table through staticmode, but for hive table, it is 
disastrous. It may deleting all data in hive partitioned table while writing 
with dynamic overwrite and `partitionOverwriteMode=STATIC`.
   Here we add a check for this and throw Exception if this happends.
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   
   ### How was this patch tested?
   Add new ut
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to