Skip to content

[spark] Support UPDATE on Paimon append-only table in spark V2 write#7097

Merged
YannByron merged 1 commit intoapache:masterfrom
kerwin-zk:v2-update-append-table
Feb 4, 2026
Merged

[spark] Support UPDATE on Paimon append-only table in spark V2 write#7097
YannByron merged 1 commit intoapache:masterfrom
kerwin-zk:v2-update-append-table

Conversation

@kerwin-zk
Copy link
Contributor

Purpose

Support UPDATE on Paimon append-only table in spark V2 write

Tests

CI

@kerwin-zk kerwin-zk force-pushed the v2-update-append-table branch 6 times, most recently from 7f4431c to 7b3ff79 Compare January 22, 2026 09:15
@kerwin-zk kerwin-zk force-pushed the v2-update-append-table branch 3 times, most recently from 2086847 to c8f9ae8 Compare January 28, 2026 08:56
/** Determines if DataSourceV2 update is not supported for the given table. */
protected def shouldFallbackToV1Update(table: SparkTable, updateTable: UpdateTable): Boolean = {
shouldFallbackToV1(table) ||
!updateTable.rewritable ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updateTable.rewritable should always be true here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YannByron When the table contains a CHAR column, it returns false.

@kerwin-zk kerwin-zk force-pushed the v2-update-append-table branch 2 times, most recently from 422d4cd to 481108e Compare February 2, 2026 07:23
@kerwin-zk kerwin-zk force-pushed the v2-update-append-table branch from 481108e to dbea632 Compare February 4, 2026 03:03
@YannByron
Copy link
Contributor

+1

@YannByron YannByron merged commit f063108 into apache:master Feb 4, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants