Commit 432a263
committed
[spark] Revert MergeInto changes from Round 8; keep Update/Delete Resolution rule fix
Round 8 (72ef84b) fixed the 5 Spark 4.1 append-only UPDATE/DELETE failures
by moving PaimonUpdateTable / PaimonDeleteTable / PaimonMergeInto into the
Resolution batch. However, it regressed 3 Blob merge-into tests that were
previously passing via the postHoc MergeInto path.
The append-only UPDATE/DELETE root cause is specific to UpdateTable /
DeleteFromTable plan types on Spark 4.1 — Spark 4.1's analyzed-plan handling
silently drops postHoc transformed output for these specific node types.
MergeIntoTable does not have the same issue: the postHoc PaimonMergeInto rule
was correctly transforming MergeIntoTable -> MergeIntoPaimonDataEvolutionTable
/ MergeIntoPaimonTable for Blob tests before Round 8.
Keep PaimonUpdateTable / PaimonDeleteTable registered additionally as
Resolution rules on Spark 4.1+ (with the guard to skip SparkTableWithRowLevelOps
so Spark's V2 rewrite handles useV2Write=true). Restore PaimonMergeInto to the
postHoc-only registration (and drop the guard from PaimonMergeIntoBase) — this
matches the original Round 3 behavior that Blob tests depend on.1 parent 72ef84b commit 432a263
2 files changed
Lines changed: 13 additions & 18 deletions
File tree
- paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark
- catalyst/analysis
- extensions
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 53 | + | |
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
| |||
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments