Skip to content

[spark] Support MergeInto on Paimon append-only table in spark V2 write#7200

Merged
YannByron merged 2 commits intoapache:masterfrom
kerwin-zk:refactor-v1-mergeinto
Feb 5, 2026
Merged

[spark] Support MergeInto on Paimon append-only table in spark V2 write#7200
YannByron merged 2 commits intoapache:masterfrom
kerwin-zk:refactor-v1-mergeinto

Conversation

@kerwin-zk
Copy link
Contributor

@kerwin-zk kerwin-zk commented Feb 3, 2026

Purpose

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

Tests

CI

@kerwin-zk kerwin-zk force-pushed the refactor-v1-mergeinto branch 4 times, most recently from b0f4f21 to 8d65750 Compare February 4, 2026 06:21
@YannByron YannByron changed the title [spark] Minor refactor for v1 MergeInto [spark] Support MergeInto on Paimon append-only table in spark V2 write Feb 4, 2026

var dataSplits: Array[DataSplit] = Array()

private def loadAllSplits(): Unit = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Extract the initialization of snapshotReader from loadAllSplits and filter methods, treat it as a member variable, and then define dataSplits as a lazy variable. The filter method just applies SnapshotReader#withDataFileNameFilter if it's called.

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 SnapshotReader is not serializable, it cannot be declared as a member variable.

@YannByron
Copy link
Contributor

+1, just left a comment.

@kerwin-zk kerwin-zk force-pushed the refactor-v1-mergeinto branch 7 times, most recently from 3fa6ccd to e77106d Compare February 5, 2026 04:16
@kerwin-zk kerwin-zk force-pushed the refactor-v1-mergeinto branch from e77106d to bb86973 Compare February 5, 2026 06:24
@YannByron YannByron merged commit 8703b95 into apache:master Feb 5, 2026
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.

2 participants