boneanxs commented on code in PR #8076: URL: https://github.com/apache/hudi/pull/8076#discussion_r1200339336
########## hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala: ########## @@ -850,9 +854,12 @@ object HoodieSparkSqlWriter { if (operation != WriteOperationType.DELETE) { if (mode == SaveMode.ErrorIfExists && tableExists) { throw new HoodieException(s"hoodie table at $tablePath already exists.") - } else if (mode == SaveMode.Overwrite && tableExists && operation != WriteOperationType.INSERT_OVERWRITE_TABLE) { - // When user set operation as INSERT_OVERWRITE_TABLE, - // overwrite will use INSERT_OVERWRITE_TABLE operator in doWriteOperation + } else if (mode == SaveMode.Overwrite && tableExists && Review Comment: > Do you mean, for Overwrite mode, we should not delete the basePath. Just overwrite the existing data. Yea > Probably something to tackle in another PR. Sure, will fix it in another PR -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org