What's the feature are you trying to implement?
Add support for SQL MERGE INTO (UPSERT) operations in the iceberg-datafusion integration. This enables atomic row-level updates and inserts based on join conditions, essential for CDC pipelines, incremental updates, and data synchronization. I already have a PoC branch.
Refer to the insert_into support
The Spark SPJ (Storage Partition Join) style is the key optimization I wanted to introduce. The Datafusion currently doesn't support merge_into sql parsing and logic plan yet. I am contributing the "MERGE INTO" in datafusion as well: apache/datafusion#20746.
SQL Example:
MERGE INTO target_table t
USING source_table s
ON t.id = s.id
WHEN MATCHED THEN
UPDATE SET t.value = s.value
WHEN NOT MATCHED THEN
INSERT (id, value) VALUES (s.id, s.value)
The following tasks are already completed on the PoC branch. Will raise formal PRs one after another as the fork repo doesn't support stacking PRs.
Willingness to contribute
I would be willing to contribute to this feature with guidance from the Iceberg Rust community
What's the feature are you trying to implement?
Add support for SQL
MERGE INTO(UPSERT) operations in the iceberg-datafusion integration. This enables atomic row-level updates and inserts based on join conditions, essential for CDC pipelines, incremental updates, and data synchronization. I already have a PoC branch.Refer to the insert_into support
The Spark SPJ (Storage Partition Join) style is the key optimization I wanted to introduce. The Datafusion currently doesn't support
merge_intosql parsing and logic plan yet. I am contributing the "MERGE INTO" in datafusion as well: apache/datafusion#20746.SQL Example:
The following tasks are already completed on the PoC branch. Will raise formal PRs one after another as the fork repo doesn't support stacking PRs.
Willingness to contribute
I would be willing to contribute to this feature with guidance from the Iceberg Rust community