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

Abierto
#18,554 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, spark

Línea de trabajo

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.

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

Descripción

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
Lenguaje dominante
Java
Estrellas
9.4k
Forks
3.7k
Merge medio
2 d 16 h
PR fusionados (30 d)
160

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.