Skip to content

Add zoned layout scan planning and pruning rewrite - #9187

Draft
joseph-isaacs wants to merge 1 commit into
developfrom
vortex-plan-zoned
Draft

Add zoned layout scan planning and pruning rewrite#9187
joseph-isaacs wants to merge 1 commit into
developfrom
vortex-plan-zoned

Conversation

@joseph-isaacs

@joseph-isaacs joseph-isaacs commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a ZonedPlan physical node with a transparent data child and auxiliary zones child
  • construct it from both current vortex.zoned layouts and legacy vortex.stats layouts
  • carry the zone length required to preserve pruning semantics
  • rewrite abstract statistic Eval expressions over ZonedPlan into zone-only pruning plans
  • recursively optimize child plans and expose the node through the public plan API
  • add plan-tree snapshots for current and legacy layouts, zoned pruning, and mixed row-index/data expressions

Scope

This PR owns zoned planning and optimization only. It does not materialize zone maps or execute plans. #9240 adds generic physical-plan execution, and #9244 materializes and executes zone-backed pruning.

Checks

  • cargo test -p vortex-layout plan:: — 37 passed
  • cargo clippy -p vortex-layout --all-targets --all-features -- -D warnings
  • cargo +nightly fmt --all -- --check
  • git diff --check origin/develop...HEAD

@codspeed-hq

codspeed-hq Bot commented Aug 6, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 9.7%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
❌ 3 regressed benchmarks
✅ 1996 untouched benchmarks
⏩ 89 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation decompress[u64, (10000, 4)] 309.7 µs 400.9 µs -22.75%
Simulation cold_misaligned[(64, 256)] 4.4 ms 5 ms -12.26%
Simulation compress_fsst[(1000, 64, 8)] 1 ms 1.2 ms -11.73%
WallTime words_gather_dispatch[1024] 30 ns 27 ns +11.11%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing vortex-plan-zoned (42470f5) with develop (806bdce)

Open in CodSpeed

Footnotes

  1. 89 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@joseph-isaacs
joseph-isaacs force-pushed the vortex-plan-zoned branch 2 times, most recently from 3c7d15a to 92d9d40 Compare August 6, 2026 20:40
@joseph-isaacs
joseph-isaacs force-pushed the vortex-plan-zoned branch 2 times, most recently from 2961ae8 to a85df04 Compare August 10, 2026 10:16
@joseph-isaacs
joseph-isaacs force-pushed the vortex-plan-zoned branch 2 times, most recently from 8e74f85 to 49a208c Compare August 10, 2026 14:10
@joseph-isaacs
joseph-isaacs force-pushed the vortex-plan-zoned branch 2 times, most recently from 0210778 to 93ff3b1 Compare August 11, 2026 20:50
@joseph-isaacs joseph-isaacs reopened this Aug 12, 2026
@joseph-isaacs
joseph-isaacs force-pushed the vortex-plan-zoned branch 2 times, most recently from 5f41c68 to fcc348b Compare August 14, 2026 14:12
@joseph-isaacs
joseph-isaacs changed the base branch from vortex-plan-optimizer to develop August 17, 2026 10:43
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs changed the title Add zoned layout scan plan Add zoned layout scan planning and pruning rewrite Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant