RecordBatchTransformer does not apply initial-default for nested fields
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The issue is in RecordBatchTransformer's handling of nested struct fields with initial-default. Start by examining the RecordBatchTransformer code and ColumnSource::Add for top-level defaults. Look at how defaults are tracked per field in the spec. The goal is to apply a nested field's own default when it's missing from old data, not return null or FeatureUnsupported. Check the spec's point example for the expected behavior. Running existing tests related to RecordBatchTransformer and initial-default will verify the fix.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem or challenge?
Problem - regarding an edge case with nested struct fields and Iceberg's initial-default option in the spec
Describe the solution you'd like
RecordBatchTransformer null-fills a nested field that is missing from an older data file. If that field has an initial-default, it returns FeatureUnsupported instead of applying the default:
initial-default of nested field {name} is not supported
Top-level fields already apply initial-default through ColumnSource::Add, but nested fields don't.
The spec tracks defaults on each field, including fields inside a struct. A parent struct's default must not embed its children's defaults. The effective value is built by applying each field's own default.
From the spec's point example: point.y has initial-default 0, and an older file has {"x": 3}. The read should return {"x": 3, "y": 0}, not null for y.
https://iceberg.apache.org/spec/#default-values
This shows up on v3 tables when a nested field was added with a non-null initial-default and older files are still in the snapshot. Those reads fail until this is implemented, which is preferable to silently returning nulls.
(Created to track as for the future since it's out of scope for #3255)
Willingness to contribute
I can contribute to this feature independently
- 主要言語
- Rust
- スター
- 1.4k
- フォーク
- 574
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 66
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iceberg-rust のほかの issue
-
datafusion
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/iceberg-rust#3297 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/iceberg-rust#3285 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/iceberg-rust#3280 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/iceberg-rust#3234 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/iceberg-rust#3229 ·
メンテナーはふだん 1 日以内に返信
apache/iceberg-rust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
aws-samples/sample-pacer#76 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
axodotdev/cargo-dist#2523 ·
メンテナーはふだん 2 日以内に返信