You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "Zouxxyy (via GitHub)" <gi...@apache.org> on 2026/04/10 10:43:18 UTC
[PR] [spark] Fix exprId mismatch in MERGE INTO by constructing Join plan directly [paimon]
Zouxxyy opened a new pull request, #7624:
URL: https://github.com/apache/paimon/pull/7624
### Purpose
Fix exprId mismatch bug in MERGE INTO when action expressions reference both source
and target columns (e.g., `COALESCE(src.b, dest.b)`).
Replace Dataset API join (`sourceDS.join(targetDS, ...)`) with manual `Join` plan node
construction, following the same pattern as Spark's `RewriteMergeIntoTable`. This
preserves original exprIds and eliminates the need for position-based rebinding.
### Tests
Added 3 test cases in `MergeIntoTableTestBase` covering coalesce with dual-column
references: temp view source, Paimon table source, and subquery source.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [spark] Fix exprId mismatch in MERGE INTO by constructing Join plan directly [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #7624:
URL: https://github.com/apache/paimon/pull/7624#issuecomment-4233506582
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [spark] Fix exprId mismatch in MERGE INTO by constructing Join plan directly [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #7624:
URL: https://github.com/apache/paimon/pull/7624
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org