Repository navigation
Conversation
Signed-off-by: Matt Katz <mhkatz97@gmail.com>
Merging this PR will improve performance by 31.04%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
|
This PR has been marked as stale because it has been open for 14 days with no activity. Please comment or remove the stale label if you wish to keep it active, otherwise it will be closed in 7 days |
Summary
Adds
ZonedStrategyBuilder, which picks each column's zone map (zone length and aggregates) by field path, and makesZonedStrategycut zones itself instead of relying on the 8kRepartitionStrategyabove it. This is the first step towards multi-resolution zone maps (#7939): one zone map per column, in the existingvortex.zonedformat.Changes
ZonedStrategyBuilder:with_zones,with_field_zones(path, zones)(the longest matching path wins; an empty list writes no zone map),with_concurrency,build(child, stats).ZoneOptions { zone_len, aggregate_fns }describes one zone map. Zone lists already take several entries, butbuildrejects more than one per column untilvortex.zoned.v2exists.LayoutWriterContextcarries the field path, andStructStrategyappends each field's name.ZonedStrategycuts each chunk at zone boundaries, aggregates each piece on its own task, and combines the partials of zones that span chunks.WriteStrategyBuilder::with_zoned. By default the zone length is still the row block size, and the 8k repartition stays.ZonedLayoutOptionsandZonedStrategy::neware replaced by the builder.Testing
vx convertof TPC-H SF1customer,orders,lineitemand ClickBenchhits_0gives the same SHA-256 on both builds.cargo nextest run -p vortex-layout -p vortex-file(886 passed),cargo clippy ... -D warnings,cargo +nightly-2026-09-10 fmt.Follow-up
DictStrategyprobes a fixed row sample (DictStrategyprobes a fixed row sample instead of the first chunk #10927), then drop the 8k repartition aboveZonedStrategy, with benchmarks.vortex.zoned.v2: several zone maps per column.