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

Aperta
#18,708 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
databases

Direzione di ricerca

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.

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

Descrizione

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
Lingua principale
Java
Stelle
9.4k
Fork
3.7k
Merge medio
2g 16h
PR unite (30g)
160

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

Tutte le issue di apache/iceberg

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.