Zouxxyy commented on code in PR #7432:
URL: https://github.com/apache/paimon/pull/7432#discussion_r2939569660


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/rowops/PaimonCopyOnWriteScan.scala:
##########
@@ -83,6 +86,15 @@ case class PaimonCopyOnWriteScan(
       .toSeq
   }
 
+  /**
+   * Override to use the cached dataSplits instead of calling inputSplits 
(which triggers
+   * loadSplits()). This prevents a race condition during concurrent MERGE 
INTO operations.
+   */
+  override def reportDriverMetrics(): Array[CustomTaskMetric] = {

Review Comment:
   You can modify `getInputSplits` to use caled splits to prevent cal agiant



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