jackylee-ch opened a new pull request #35862: URL: https://github.com/apache/spark/pull/35862
### Why are the changes needed? We have supported partition overwrite with static mode by default while partition manged by catalog for a long time. It looks weird to me as `static mode` behaves catastrophically and deletes all data in table. Maybe setting partition overwrite with dynamic mode by default while partition manged by catalog, and user can set `partitionOverwriteMode` in table properties to support old behaviors. And also, this change can also bring a better experience to users when migrating from the original hive table to the datasource table, rather than the old data being deleted when the user does not know the meaning of `partitionOverwriteMode`. ### Does this PR introduce _any_ user-facing change? Yes. We will no longer delete old partition data by default when user insert overwrite partitioned datasource tables. ### How was this patch tested? Origin 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]
