[Variant] Configure explicit shredding when writing Parquet
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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 の本文から書いたものです。
説明
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
- datafusion-variant integration request.
- Existing shredding kernel and schema builder.
- ArrowWriter schema initialization: the writer currently derives its file schema from the supplied schema before writing batches.
- #8922 / #8940 introduced the schema builder; this request concerns applying that schema during writing.
- 主要言語
- Rust
- スター
- 3.7k
- フォーク
- 1.5k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 183
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/arrow-rs のほかの issue
-
parquet: `ArrowWriter::try_new` panics on a schema with a Union field instead of returning an errorオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
`RunArray::try_new` rejects run ends whose null buffer has no nulls対応中かも @Surajsuthar が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/arrow-rs#12427 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Variant] `variant_get` string and binary cast errors show Rust builder type names再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
メンテナーはふだん 1 日以内に返信
apache/arrow-rs の issue をすべて見る
似ている issue
-
area:ui effort:medium enhancement P7 source:agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
machine rename accepts a label already used by another machine, making --machine <label> ambiguousオープンmaintainer-needed p2 remote triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug help wanted ui
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
userFRM/egui-charts#4605 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信