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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to