RecordBatchTransformer does not apply initial-default for nested fields
I maintainer di solito rispondono entro 4 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 1.4k
- Fork
- 604
- Merge medio
- 5g 4h
- PR unite (30g)
- 64
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/iceberg-rust
-
REST create_table omits partition spec-id; Java-based servers (Polaris) reject itForse già presa @ahlag l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
apache/iceberg-rust#3469 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
V1 manifest lists written by Java lose added/existing/deleted file countsForse già presa @kacper-li-airspace-intelligence l’ha presa 8 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/iceberg-rust#3445 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/iceberg-rust#3359 ·
I maintainer di solito rispondono entro 4 giorni
-
Row filter keeps every row for `<` and `<=` on a null column that is missing from the data fileAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/iceberg-rust#3355 · 1 reazione ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/iceberg-rust#3348 ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di apache/iceberg-rust
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
pedrovgs/UseCaseCoverage#23 ·
-
priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
storytold/photocraft#8687 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
THREAD: operation failedApertaarea:kernel bug kernel-paused needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bherbruck/solvecraft#5055 · 2 commenti ·
-
bug cli p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 3 giorni
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno