Skip to content

refactor(common): move plan attach logic to exec context#1901

Merged
LNSD merged 1 commit intomainfrom
lnsd/refactor-common-context-exec-attach
Mar 4, 2026
Merged

refactor(common): move plan attach logic to exec context#1901
LNSD merged 1 commit intomainfrom
lnsd/refactor-common-context-exec-attach

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Mar 3, 2026

Centralise table-source attachment in ExecContext so the traversal lives next to the catalog and snapshot state it depends on.

  • Remove inline transform_with_subqueries from DetachedLogicalPlan::attach_to; delegate to ctx.attach()
  • Add ExecContext::attach() driving the plan traversal via attach_table_node
  • Extract attach_table_node as a standalone free function, replacing PlanTable sources with QueryableSnapshot providers
  • Remove unused imports from detached_logical_plan.rs

@LNSD LNSD requested review from Theodus and shiyasmohd March 3, 2026 23:47
@LNSD LNSD self-assigned this Mar 3, 2026
@LNSD
Copy link
Contributor Author

LNSD commented Mar 3, 2026

This is a spinoff from #1900

…ExecContext

Centralise table-source attachment in ExecContext so the traversal lives next to the catalog and snapshot state it depends on.

- Remove inline `transform_with_subqueries` from `DetachedLogicalPlan::attach_to`; delegate to `ctx.attach()`
- Add `ExecContext::attach()` driving the plan traversal via `attach_table_node`
- Extract `attach_table_node` as a standalone free function replacing `PlanTable` sources with `QueryableSnapshot` providers
- Remove unused imports from `detached_logical_plan.rs`

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD force-pushed the lnsd/refactor-common-context-exec-attach branch from 2885983 to ffc5abe Compare March 3, 2026 23:52
Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@LNSD LNSD merged commit 6920f14 into main Mar 4, 2026
9 checks passed
@LNSD LNSD deleted the lnsd/refactor-common-context-exec-attach branch March 4, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants