[Variant] Configure explicit shredding when writing Parquet

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
data

調査の方向性

Read parquet-variant-compute/src/shred_variant.rs for the existing kernels and schema builder, then inspect parquet/src/arrow/arrow_writer/mod.rs around schema initialization. Define how writer configuration applies one layout across batches, derives schema and metadata, and handles already-shredded input; done means preserving logical values and null semantics while keeping current behavior without configuration.

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

説明

enhancement
Is your feature request related to a problem or challenge?

Applications such as datafusion-variant want to select a physical layout for Variant columns when writing Parquet—for example, shredding event.service as Utf8 and event.status as Int64.

This is already possible by calling shred_variant, constructing a RecordBatch with the resulting storage arrays and Variant fields, and passing it to ArrowWriter. Each application must coordinate the transformation, output schema, and metadata itself. Writer-level configuration or a reusable writer adapter would make this easier.

Describe the solution you'd like

Provide a way to associate an explicit shredding schema with a Variant column and write batches containing the original Variant arrays. For example, the caller could supply a logical target DataType built with ShreddedSchemaBuilder; the exact API is open for discussion.

The integration should reuse the existing shredding kernels, derive the corresponding output schema and Variant metadata, and use the selected layout consistently across batches in a file. Unselected fields and incompatible values should remain in the residual Variant data, preserving logical values and null semantics.

Keep the current behavior when no configuration is supplied. Define the policy for already-shredded input, since shred_variant currently rejects it; changing layouts may require unshred_variant first.

Automatic schema selection from sampled data is separate work.

Describe alternatives you've considered
Additional context
主要言語
Rust
スター
3.7k
フォーク
1.5k
平均マージ
2日 16時間
マージ済み PR(30日)
183

環境構築

はじめの一歩

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

apache/arrow-rs のほかの issue

apache/arrow-rs の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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