Add plan-native scan execution - #9240
Draft
joseph-isaacs wants to merge 1 commit into
Draft
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
joseph-isaacs
force-pushed
the
vortex-plan-scan-v2
branch
from
August 6, 2026 15:59
5ba752f to
3d73e5e
Compare
joseph-isaacs
force-pushed
the
vortex-plan-scan-v2
branch
from
August 6, 2026 20:40
3d73e5e to
43bb342
Compare
joseph-isaacs
force-pushed
the
vortex-plan-scan-v2
branch
from
August 6, 2026 23:58
43bb342 to
a8c35cb
Compare
Give `PlanVTable` an `execute` hook taking a row range and a selection mask, and implement it for every operator: `SegmentScan` reads and decodes its segment, the structural operators combine their children, and `Eval` applies the expression to its child's output. Add `vortex-scan-v2`, which copies the existing scan orchestration around this API so the `LayoutReader` scanner is untouched while the plan-native path is developed. `Take` now records whether every dictionary value is referenced by some code. That fact previously came from the dict layout; since operators no longer hold a layout, lowering carries it into the operator's data. Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012obBhJ8oPZoBbKyeS79yMv
joseph-isaacs
force-pushed
the
vortex-plan-scan-v2
branch
from
August 7, 2026 12:49
a8c35cb to
fba0962
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vortex-scan-v2crate copied from the existing scan orchestration and backedonly by physical plans
execute only
BoundExpressionplan nodesnodes; expression execution uses
apply_boundStructPlannever requests an absent unused-fieldsegment
split ranges, and task results
existing
LayoutReaderscanThis keeps the original scan path unchanged while establishing the smallest independent path for
scanning through plans.
Current scope
copied into this correctness-first path
Validation
cargo +nightly fmt --all -- --checkRUSTC_WRAPPER= cargo clippy -p vortex-layout -p vortex-scan-v2 --all-targets --all-features -- -D warningsRUSTC_WRAPPER= cargo test -p vortex-layout plan::— 15 passedRUSTC_WRAPPER= cargo test -p vortex-scan-v2— 3 passedRUSTC_WRAPPER= cargo test --doc -p vortex-layout -p vortex-scan-v2git diff --checkRUSTC_WRAPPER= RUST_LOG=warn cargo run -p vortex-scan-v2 --example tpch_scan -- vortex-bench/data/tpch/0.01/vortex-file-compressed/lineitem.vortexLayoutReaderscanStacked on #9187.