Repository navigation
Conversation
zzylol
force-pushed
the
stack/572-b2-logical-optimizer
branch
from
October 5, 2026 06:21
f12411e to
e7d2516
Compare
zzylol
force-pushed
the
stack/572-b3-physical-optimizer
branch
from
October 5, 2026 06:21
a3c2d63 to
8d2a23d
Compare
zzylol
force-pushed
the
stack/572-b2-logical-optimizer
branch
from
October 8, 2026 16:47
e7d2516 to
eb3f3e3
Compare
zzylol
force-pushed
the
stack/572-b3-physical-optimizer
branch
2 times, most recently
from
October 10, 2026 14:32
20db54d to
9c43271
Compare
zzylol
force-pushed
the
stack/572-b2-logical-optimizer
branch
from
October 10, 2026 14:32
eb3f3e3 to
9482f1b
Compare
Move asap-aware-mapping's physical_candidates into the new asap-physical-optimizer crate (implementation/physical_candidates.rs), with a trimmed test_support copy. Production code depends only on asap-types; a new manifest guard rejects plan-selection, aware-mapping and physical-operators. Imports are rewritten without compatibility re-exports. Pure move (#572, B3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zzylol
force-pushed
the
stack/572-b2-logical-optimizer
branch
from
October 11, 2026 17:11
9482f1b to
8cf87dd
Compare
zzylol
force-pushed
the
stack/572-b3-physical-optimizer
branch
from
October 11, 2026 17:11
9c43271 to
020949e
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.
Rebased on main d4869a7 (DF 54).
Why
#572 puts each #509 stage in its own crate so that Cargo enforces the one-way stage flow. This PR is step B3: Stage 2 (physical candidates) moves out of
asap-aware-mappinginto a new crate,asap-physical-optimizer. It is a pure move; behavior is unchanged.What
Before this PR
After this PR
cargo tree -p asap-physical-optimizer --depth 1 -e normal,dev:How
git mvasap-aware-mapping/src/physical_candidates.rstophysical-optimizer/src/implementation/physical_candidates.rs.materialization/does not exist yet, so no empty module is created.asap-types: a Stage 1 candidate reaches Stage 2 asOperatorNoderoots.asap-logical-optimizeris therefore a dev-dependency (the tests build candidates withenumerate_local_logical_candidates), not a normal one. The PromQL front end is also a dev-dependency.test_support. The crate has its own copy with onlylower_promql.asap_physical_optimizer::implementation::physical_candidates::…:plan_selection/mod.rs(two sites) andintegration-tests/tests/planner_layering_example1.rs(two sites).asap-aware-mappingandintegration-testsgain the dependency.tests/stage2_dependencies.rs, fails if the manifest namesasap-plan-selection,asap-aware-mappingorasap-physical-operators. The Stage 1 guard also rejectsasap-physical-optimizernow.Moved files
asap-aware-mapping/src/physical_candidates.rsphysical-optimizer/src/implementation/physical_candidates.rs(unchanged, 281 lines)New:
Cargo.toml,lib.rs,implementation/mod.rs,test_support.rsandtests/stage2_dependencies.rs.Volume
14 files changed, +143 / −15. One file moved, 5 new, 4 import sites rewritten.
Gate (at the tip)
cargo fmt --all --check: passes.cargo clippy --workspace --all-targets --all-features -- -D warnings: passes.cargo test --workspace: 1,529 passed, 12 ignored. That is refactor: extract the Stage 1 logical-optimizer crate (#572 B2) #583's 1,528 plus the new manifest guard. No test is deleted.python3 -m unittest discover -s tools/dag-viewer -p test_render.py: OK, 6 skipped.stage_pipeline --example planner-layering-1regeneratestools/dag-viewer/examples/planner-layering-example1.jsonbyte for byte.Part of #572 (B3) and #509. Follows #583. Related: #580. Next: B4 (
asap-plan-selection).🤖 Generated with Claude Code