Spark: Expose the effective split target size as a driver metric

Abierto
#18,708 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
java
Área
databases

Línea de trabajo

Read spark/v4.2/spark/src/main/java/org/apache/iceberg/spark/source/SparkScan.java around lines 369-385 to see where the split target is resolved and passed to task-group planning. Add a driver metric named effectiveSplitTargetSize holding the resolved target in bytes. Tests should cover adaptive sizing, disabled adaptation, explicit read option, and staged rewrite scans; done means the metric is visible in Spark scan driver metrics.

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

Descripción

Feature Request / Improvement

Iceberg's Spark scan resolves the split target from the read option, session configuration, table property, or default, then may reduce it through adaptive sizing. The resulting target is passed to task-group planning, but the adjustment is currently visible only in a debug log. Scan analysis and autotuning tools cannot reliably recover the target from Spark SQL metrics or event logs. This matters when diagnosing scan partition sizes; see cudf-spark-tools#2206.

Please expose the effective split target size in bytes as a Spark scan driver metric, for example effectiveSplitTargetSize. Its value should be the target actually passed to task-group planning after configuration precedence and adaptive sizing are resolved, rather than an individual input partition's size.

Useful checks would cover an adaptive target, a configured target with adaptation disabled, an explicit read option, and staged rewrite scans that use their resolved target directly. An initial contribution can target Spark 4.2, with older Spark integrations considered separately.

Query engine

Spark

Willingness to contribute
  • I can contribute this improvement/feature independently
Lenguaje dominante
Java
Estrellas
9.4k
Forks
3.7k
Merge medio
2 d 15 h
PR fusionados (30 d)
169

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/iceberg

Todos los issues de apache/iceberg

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.