Tracking Issue: Support configuring per-field overrides and multiple zone maps via `ZonedLayoutOptions`
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 20/100
Piste de recherche
This is a tracking issue for the writer API; it points to implementation issues #12424, #10928, and #12380, while #7939 is the parent epic. Read those implementation issues first to find the relevant files, tests, and remaining work. The listed API and behavior describe the target, but this issue itself does not define a standalone change to complete.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Tracks the writer API for choosing the zone maps of each column.
- Parent epic: #7939
- Implementation: #12424 (the writer cuts zones itself), #10928 (API, one zone map per column), #12380 (several zone maps per column)
API
ZonedLayoutOptions describes the zone maps of every column. It is plain data, passed to ZonedStrategy::new(child, stats, options) as before:
pub struct ZonedLayoutOptions {
/// The zone maps of every column, in the order a reader evaluates them.
pub zone_maps: Vec<ZoneMapOptions>,
/// Zone maps for the column at exactly this path, instead of `zone_maps`.
pub field_overrides: HashMap<FieldPath, Vec<ZoneMapOptions>>,
pub concurrency: NonZeroUsize,
}
pub struct ZoneMapOptions {
pub zone_len: NonZeroU32,
pub aggregates: ZoneMapAggregates,
}
pub enum ZoneMapAggregates {
Inferred, // the pruning aggregates for the column's dtype
Set(Arc<[AggregateFnRef]>), // exactly these
InferredWith(Arc<[AggregateFnRef]>), // the inferred ones, plus these
}
- The default is one zone map of 8,192-row zones with inferred aggregates.
- An override replaces the whole list for the column at exactly that path. An empty list writes no zone map. It does not apply to the columns nested under the path: a zone length counts the rows of the column it is set for, and a struct has no zone maps of its own.
- The zone maps of a column are a flat list, so the cheapest goes first. Their zone lengths are independent of each other and of how the input is chunked.
- An aggregate that has no state for a column's dtype is left out for that column.
WriteStrategyBuilder::with_zoned(options)sets it for a file. Without it, every column gets one zone map ofwith_row_block_sizerows.
Behaviour
- One zone map is written as
vortex.zoned, as today. Several are written asvortex.zoned.v2, which is in theunstableedition; a write that does not permit it fails. - The legacy
vortex.statswriter writes one zone map, one zone per input chunk, and fails for several. - Breaking: the
block_sizeandaggregate_fnsfields ofZonedLayoutOptionsare replaced byzone_maps, and a zone length is aNonZeroU32.
- Langage dominant
- Rust
- Étoiles
- 3.2k
- Forks
- 239
- Merge moyen
- 1 j 4 h
- PR mergées (30 j)
- 684
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de vortex-data/vortex
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
vortex-data/vortex#12633 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
vortex-data/vortex#12628 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
vortex-data/vortex#12491 ·
Les mainteneurs répondent en général sous 1 jour
-
Fallible constructor for nested_case_whenPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
vortex-data/vortex#11425 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 67/100
vortex-data/vortex#12635 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de vortex-data/vortex
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
marklauter/tsong#110 ·
-
docs enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
marketing
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
area: engine bug needs milestone
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Mudcrab-Team/mudcrab#1197 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour