Tracking Issue: Support configuring per-field overrides and multiple zone maps via `ZonedLayoutOptions`
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Rust
- 星號
- 3.2k
- 分支
- 239
- 平均合併
- 1 天 4 小時
- 30 天內合併 PR
- 684
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
vortex-data/vortex 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
vortex-data/vortex#12633 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
vortex-data/vortex#12628 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
vortex-data/vortex#12491 ·
維護者通常 1 天內回覆
-
Fallible constructor for nested_case_when可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
vortex-data/vortex#11425 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 67/100
vortex-data/vortex#12635 ·
維護者通常 1 天內回覆
查看 vortex-data/vortex 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
valkey-io/valkey-glide#7975 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
marklauter/tsong#110 ·
-
docs enhancement
難度 2/5 1-3 小時 新手友好度 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 則留言 ·
維護者通常 1 天內回覆
-
needs-triage
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆