YannByron commented on code in PR #6704:
URL: https://github.com/apache/paimon/pull/6704#discussion_r2622343859


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/write/BaseV2WriteBuilder.scala:
##########
@@ -32,6 +33,15 @@ abstract class BaseV2WriteBuilder(table: Table)
   protected var overwriteDynamic = false
   protected var overwritePartitions: Option[Map[String, String]] = None
 
+  protected var isOverwriteFiles = false
+  protected var copyOnWriteScan: Option[PaimonCopyOnWriteScan] = None
+
+  def overwriteFiles(scan: Option[PaimonCopyOnWriteScan]): WriteBuilder = {
+    this.isOverwriteFiles = true

Review Comment:
   In case that delete all data of a table without any filters, `scan` is 
`None` and it still have to overwrite files.



-- 
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]

Reply via email to