LuciferYang commented on code in PR #56111:
URL: https://github.com/apache/spark/pull/56111#discussion_r3346417411
##########
sql/core/src/main/scala/org/apache/spark/sql/classic/DataFrameWriter.scala:
##########
@@ -176,7 +176,21 @@ final class DataFrameWriter[T] private[sql](ds:
Dataset[T]) extends sql.DataFram
val catalog = CatalogV2Util.getTableProviderCatalog(
supportsExtract, catalogManager, dsOptions)
- (catalog.loadTable(ident), Some(catalog), Some(ident))
+ try {
+ (catalog.loadTable(ident), Some(catalog), Some(ident))
+ } catch {
+ // SPARK-57068: align Overwrite-on-missing with V1 source
behavior
Review Comment:
Agreed. Will close this pr. Thanks @cloud-fan and @gengliangwang
--
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]