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

Abierto
#7,427 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust, scala, spark

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Scala
Estrellas
1.3k
Forks
414
Merge medio
3 d 5 h
PR fusionados (30 d)
210

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/datafusion-comet

Todos los issues de apache/datafusion-comet

Issues similares

Más issues de Scala

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.