Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

RecordBatchTransformer does not apply initial-default for nested fields

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
databases

調査の方向性

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

環境構築

はじめの一歩

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

apache/iceberg-rust のほかの issue

apache/iceberg-rust の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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