chore(tesseract): Move SQL rendering parts from sql_evaluator to plan#10836
chore(tesseract): Move SQL rendering parts from sql_evaluator to plan#10836waralexrom merged 3 commits intomasterfrom
Conversation
1bc292a to
bf13761
Compare
|
Claude finished @waralexrom's task in 2m 57s —— View job Code Review: PR #10836
SummaryThis PR completes a three-step refactoring of the Tesseract native SQL planner:
The result is a cleaner separation of concerns: 198 files changed, but the net delta is only +2 lines — this is almost entirely renames and import path updates. Review FindingsOverall: This is a clean, well-structured refactoring. No bugs, no security issues, no behavioral changes. Correctness ✅
Module Structure ✅
Commit Hygiene ✅
Pre-existing Items (Not Introduced by This PR)These are pre-existing in the base branch and were carried forward without change:
These are outside the scope of this PR but worth noting for a follow-up. Performance & Security ✅
Testing
VerdictLGTM — This is a well-executed structural refactoring that improves module organization without changing behavior. The commit breakdown is logical and the old paths are cleanly eliminated. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10836 +/- ##
=======================================
Coverage 78.82% 78.83%
=======================================
Files 470 470
Lines 92292 92292
Branches 3436 3436
=======================================
+ Hits 72750 72755 +5
+ Misses 19039 19034 -5
Partials 503 503
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Move the pure SQL-rendering subsystem out of `planner/sql_evaluator/` into `plan/`: - `sql_nodes/` -> `plan/sql_nodes/` - `sql_visitor.rs` (`SqlEvaluatorVisitor`) -> `plan/sql_visitor.rs` - `cube_ref_evaluator.rs` -> `plan/cube_ref_evaluator.rs` - `references_builder.rs` -> `plan/references_builder.rs` - `VisitorContext`, `evaluate_with_context`, `evaluate_sql_call_with_context` -> `plan/visitor_context.rs` `FiltersContext` stays in `planner/visitor_context.rs`. Purely structural; no semantic changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`plan/` is now the physical-plan layer: SQL AST nodes, SQL rendering, visitors, and the to-SQL traits for symbols. Rename to make that explicit and to mirror `logical_plan/`. `crate::plan::*` -> `crate::physical_plan::*` everywhere. Purely structural; no semantic changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…module Move the remaining business-model contents of `planner/sql_evaluator/` directly under `planner/` and delete the now-empty `sql_evaluator/` directory. - `symbols/` -> `planner/symbols/` - `compiler.rs` -> `planner/compiler.rs` - `collectors/` -> `planner/collectors/` - `visitor.rs` (`TraversalVisitor`) -> `planner/visitor.rs` - `sql_call.rs`, `sql_call_builder.rs` -> `planner/sql_call*.rs` (kept whole — `SqlCall::eval` stays in planner as a pragmatic compromise rather than splitting data vs. evaluation) `crate::planner::sql_evaluator::*` -> `crate::planner::*` everywhere. Purely structural; no semantic changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bf13761 to
0e7b40f
Compare
|
Claude finished @waralexrom's task in 1m 47s —— View job Code Review: PR #10836
SummaryThis PR completes a three-step structural refactoring of the Tesseract native SQL planner (
198 files changed, but the net delta is +2 lines — this is purely structural with no behavioral changes. Review FindingsCorrectness ✅
Module Structure ✅
Commit Hygiene ✅
Performance & Security ✅
Pre-existing Items (Not Introduced by This PR)Carried forward without change — noted for a possible follow-up:
TestingPure rename/restructure — existing tests provide adequate coverage. Codecov confirms zero coverage change. VerdictLGTM — This is a well-executed structural refactoring that cleanly separates compilation concerns ( |
Check List