This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 857c575bcd [spark] Pass the IOManager to the data evolution 
partial-column writer (#10919)
857c575bcd is described below

commit 857c575bcdf074d04bc877ab4b2162dab89d7af0
Author: YangJie <[email protected]>
AuthorDate: Mon Nov 2 01:17:43 2026 -0500

    [spark] Pass the IOManager to the data evolution partial-column writer 
(#10919)
---
 .../spark/write/DataEvolutionTableDataWrite.scala  |  1 +
 .../paimon/spark/sql/RowTrackingTestBase.scala     | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git 
a/paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/write/DataEvolutionTableDataWrite.scala
 
b/paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/write/DataEvolutionTableDataWrite.scala
index 1ba681c813..bd0043e6c6 100644
--- 
a/paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/write/DataEvolutionTableDataWrite.scala
+++ 
b/paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/write/DataEvolutionTableDataWrite.scala
@@ -151,6 +151,7 @@ case class DataEvolutionTableDataWrite(
     val writer = writeBuilder
       .newWrite()
       .withWriteType(writeType)
+      .withIOManager(ioManager)
       .asInstanceOf[TableWriteImpl[InternalRow]]
       .getWrite
       .asInstanceOf[AbstractFileStoreWrite[InternalRow]]
diff --git 
a/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/RowTrackingTestBase.scala
 
b/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/RowTrackingTestBase.scala
index 8f8b091ebb..1d26fa3c0e 100644
--- 
a/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/RowTrackingTestBase.scala
+++ 
b/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/RowTrackingTestBase.scala
@@ -922,6 +922,36 @@ abstract class RowTrackingTestBase extends 
PaimonSparkTestBase with AdaptiveSpar
     }
   }
 
+  test("Data Evolution: merge into with a spilling append write buffer") {
+    withTable("s", "t") {
+      sql("""CREATE TABLE t (id INT, b STRING, c INT) TBLPROPERTIES
+            |('row-tracking.enabled' = 'true',
+            |'data-evolution.enabled' = 'true',
+            |'write-buffer-for-append' = 'true',
+            |'write-buffer-size' = '256 kb',
+            |'page-size' = '64 kb')""".stripMargin)
+      sql(
+        "INSERT INTO t SELECT /*+ REPARTITION(1) */ CAST(id AS INT), CAST(id 
AS STRING), " +
+          "CAST(id AS INT) FROM range(0, 20000)")
+      sql("CREATE TABLE s (id INT, b STRING)")
+      sql(
+        "INSERT INTO s SELECT CAST(id AS INT), concat(repeat('x', 100), 
CAST(id AS STRING)) " +
+          "FROM range(0, 20000)")
+
+      sql("""
+            |MERGE INTO t
+            |USING s
+            |ON t.id = s.id
+            |WHEN MATCHED THEN UPDATE SET t.b = s.b
+            |""".stripMargin)
+      checkAnswer(
+        sql(
+          "SELECT count(*) FROM t WHERE b = concat(repeat('x', 100), CAST(id 
AS STRING)) " +
+            "AND c = id"),
+        Seq(Row(20000)))
+    }
+  }
+
   test("Data Evolution: merge into table with data-evolution for any source 
table") {
     withTable("s", "t") {
       Seq((1, 11), (2, 22)).toDF("id", "b").createOrReplaceTempView("s")

Reply via email to