[Variant] Infer a shredding schema from sampled values
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with parquet-variant-compute/src/shred_variant.rs to understand the existing shredding APIs and how shred_variant consumes a schema. Then define deterministic inference behavior for bounded samples, including mixed types, width and depth limits, memory limits, and empty samples; the API and thresholds are open for discussion. Done means the inferred schema can be used with shred_variant independently of writer integration, while later or incompatible values remain representable in residual Variant storage.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem or challenge?
shred_variant and ShreddedSchemaBuilder let callers shred Variant values using an explicit schema. For semi-structured data whose shape is not known in advance, callers must decide which paths and types to extract themselves.
A reusable schema-selection API would let applications automatically choose a layout for Parquet output without each implementing its own inference policy.
Describe the solution you'd like
Infer a logical target schema from a bounded sample of Variant values, suitable for passing to shred_variant. For example, a sample of events with string service and integer status fields could produce a target equivalent to STRUCT(service Utf8, status Int64).
The inference policy should consider field frequency and type compatibility, with limits on schema width, depth, and inference memory. Define how mixed types are handled—for example, selecting a common type versus leaving that path unshredded—and make the result deterministic for the same sample and options. Empty or all-null samples should have a defined fallback.
For Parquet writing, callers would collect a bounded sample, select the layout before creating the writer, then apply it to the sampled and subsequent batches. The layout stays fixed for the file. Later fields and incompatible values remain in residual Variant storage; the sample must not constrain which logical values can be written.
The API shape, default thresholds, and whether sampling belongs in a separate writer adapter are open for discussion. Inference should be usable independently of writer integration in #11950.
Describe alternatives you've considered
Use an explicit schema, leave values unshredded, or implement inference downstream. Explicit schemas remain useful when callers know which paths their workloads access; sampling cannot discover that information by itself.
Additional context
- Existing shredding APIs.
- DuckDB samples the first row group for Parquet shredding.
- Spark's inference implementation considers field frequency, compatible types, and schema width/depth limits.
- #11950 covers explicit writer-level configuration; datafusion-variant #104 tracks exposing explicit shredding downstream.
- Lingua principale
- Rust
- Stelle
- 3.7k
- Fork
- 1.5k
- Merge medio
- 2g 16h
- PR unite (30g)
- 183
Preparare l'ambiente
- 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/arrow-rs
-
parquet: `ArrowWriter::try_new` panics on a schema with a Union field instead of returning an errorAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
`RunArray::try_new` rejects run ends whose null buffer has no nullsForse già presa @Surajsuthar l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/arrow-rs#12427 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Variant] `variant_get` string and binary cast errors show Rust builder type namesForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/arrow-rs
Issue simili
-
area:ui effort:medium enhancement P7 source:agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
machine rename accepts a label already used by another machine, making --machine <label> ambiguousApertamaintainer-needed p2 remote triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
userFRM/egui-charts#4605 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno