Support Iceberg's `MergeRowsExec` on Spark 3.4 and 3.5

Aperta
#7,427 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, scala, spark

Direzione di ricerca

Start from the existing Spark 4.0 serde for MergeRowsExec in the Comet Scala sources, then find where Iceberg's Spark 3.4 and 3.5 MergeRowsExec from iceberg-spark-extensions would need a version-specific shim. Read #5122, #5644 and #6240 for how row-level plans fit together. Done means the operator converts natively on Spark 3.4 and 3.5 with matched, not-matched and cardinality-check behaviour preserved.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement requires-triage
What is the problem the feature request solves?

Comet runs MergeRowsExec natively on Spark 4.0 and later. On Spark 3.4 and 3.5, MERGE INTO on Iceberg tables plans Iceberg's own MergeRowsExec from iceberg-spark-extensions, which Comet does not convert. The operators above it, including the copy-on-write ReplaceData write, then stay in Spark.

Describe the potential solution

Add a serde and shim for Iceberg's Spark 3.4 and 3.5 MergeRowsExec that reuses the native merge-rows operator from the Spark 4.0 path. Cover matched and not-matched clauses, conditions on each, and the cardinality check.

Additional context

Related: #5122 (row-level MERGE / UPDATE / DELETE plans). This only pays off fully together with native ReplaceData (#5644) and WriteDelta (#6240).

Lingua principale
Scala
Stelle
1.3k
Fork
414
Merge medio
3g 5h
PR unite (30g)
210

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/datafusion-comet

Tutte le issue di apache/datafusion-comet

Issue simili

Altre issue su Scala

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.