Spark: Avoid intermediate copies of byte-array-backed strings in Parquet writes

Aperta
#18,554 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, spark

Direzione di ricerca

Start by tracing Iceberg’s Spark Parquet writer and review the related SPARK-60321 change. Check how byte-array-backed strings, other storage such as off-heap memory, and reused backing memory are handled. Done means avoiding intermediate copies for byte-array-backed strings while retaining the fallback and preserving correctness; verify with the relevant writer tests.

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

Descrizione

improvement
Feature Request / Improvement

This change avoids intermediate byte-array copies when writing byte-array-backed Spark strings through Iceberg’s Parquet writer. It passes the backing array, offset, and length directly to Parquet, while retaining the copy-based fallback for other storage, including off-heap memory.

The bytes are marked as reused so Parquet copies values it retains, preserving correctness when Spark reuses the backing memory.

Related: SPARK-60321 (https://issues.apache.org/jira/browse/SPARK-60321).

Query engine

Spark

Willingness to contribute
  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time
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.