parquet/pqarrow: `GetFieldReaders` does not prune schemas for nested structs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
Direzione di ricerca
Start with pqarrow.FileReader.GetFieldReaders and trace how selected Parquet leaf indices produce the returned Arrow schema and record batches. Reproduce with a nested struct and a subset of leaf paths resolved by ColumnIndexByName; check that the schema retains only selected leaves and required enclosing fields and matches the projected batch data.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug, including details regarding any error messages, version, and platform.
pqarrow.FileReader.GetFieldReaders projects selected Parquet leaf columns in returned record batches, but the returned Arrow schema retains unselected fields within nested structs.
This makes the returned schema inconsistent with the projected data and prevents using it as the schema for writing projected batches.
Reproduction
- Open a Parquet file containing nested struct fields.
- Resolve a small subset of nested leaf paths with
ColumnIndexByName. - Pass those indices to:
_, schema, err := reader.GetFieldReaders(ctx, fieldIndices, nil)
- Inspect schema.
Expected behavior
The returned schema should contain only the selected leaf fields and their required enclosing struct/list fields.
Actual behavior
The returned record batches contain only selected data, but the returned Arrow schema includes all fields from enclosing nested structs.
Its happening with all versions.
Component(s)
Parquet
- Lingua principale
- Assembly
- Stelle
- 423
- Fork
- 188
- Merge medio
- 1g 7h
- PR unite (30g)
- 164
Preparare l'ambiente
- Include un Dockerfile o un 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/arrow-go
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
apache/arrow-go#1591 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
arrow/compute: safe float to integer cast skips the truncation check in sliced arrays with nullsForse già presa @mansur-akhmadi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 1/100
I maintainer di solito rispondono entro 1 giorno
-
parquet/file: a panic recovered in WriteBatch is not kept, so Close writes a footer for rows with no valuesForse già presa @EdwardShen125 l’ha presa 4 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
ipc: stream reader accepts an invalid flatbuffer schema and decimal precision 0Forse già presa @AynSiddiqui l’ha presa 7 giorni fa. Aperta
apache/arrow-go#1676 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/arrow-go
Issue simili
-
Fish Audio Live calls fail to start: `Unknown callback "onNotice"` from @fishaudio/agent-clientForse già presa @NEAL3K l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
milind-soni/OpenMausBot#8345 ·
I maintainer di solito rispondono entro 1 giorno
-
Feed validator crashes with "Memory error" when validating https://www.tidyverse.org/index.xmlApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
w3c/feedvalidator#204 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
open-mmlab/mmcv#3352 ·
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100