apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.13k stars 842 forks source link

[spark] Fix merge into update on source eq target condition #3665

Closed Zouxxyy closed 4 days ago

Zouxxyy commented 4 days ago

Purpose

Before on target.a = source.a is OK, this patch fix merge into on source.a = target.a, e,g

MERGE INTO target
USING source
ON source.a = target.a
WHEN MATCHED THEN
UPDATE SET a = source.a, b = source.b, c = source.c

Tests

API and Format

Documentation