[spark] Support UPDATE on Paimon append-only table in spark V2 write#7097
Merged
YannByron merged 1 commit intoapache:masterfrom Feb 4, 2026
Merged
[spark] Support UPDATE on Paimon append-only table in spark V2 write#7097YannByron merged 1 commit intoapache:masterfrom
YannByron merged 1 commit intoapache:masterfrom
Conversation
7f4431c to
7b3ff79
Compare
Zouxxyy
reviewed
Jan 23, 2026
paimon-spark/paimon-spark-3.5/src/test/scala/org/apache/paimon/spark/sql/UpdateTableTest.scala
Outdated
Show resolved
Hide resolved
2086847 to
c8f9ae8
Compare
YannByron
reviewed
Jan 29, 2026
| /** Determines if DataSourceV2 update is not supported for the given table. */ | ||
| protected def shouldFallbackToV1Update(table: SparkTable, updateTable: UpdateTable): Boolean = { | ||
| shouldFallbackToV1(table) || | ||
| !updateTable.rewritable || |
Contributor
There was a problem hiding this comment.
updateTable.rewritable should always be true here, right?
Contributor
Author
There was a problem hiding this comment.
@YannByron When the table contains a CHAR column, it returns false.
YannByron
reviewed
Jan 29, 2026
...-common/src/main/scala/org/apache/paimon/spark/extensions/PaimonSparkSessionExtensions.scala
Outdated
Show resolved
Hide resolved
422d4cd to
481108e
Compare
YannByron
reviewed
Feb 3, 2026
...park-common/src/main/scala/org/apache/paimon/spark/catalyst/analysis/PaimonUpdateTable.scala
Outdated
Show resolved
Hide resolved
481108e to
dbea632
Compare
YannByron
approved these changes
Feb 4, 2026
Contributor
|
+1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Support UPDATE on Paimon append-only table in spark V2 write
Tests
CI