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

オープン
#18,554 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, spark

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
9.4k
フォーク
3.7k
平均マージ
2日 16時間
マージ済み PR(30日)
160

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。