Skip to content

Comments

refactor(common): rename execution context modules and types#1843

Open
LNSD wants to merge 1 commit intomainfrom
lnsd/refactor-common-rename-plan-exec
Open

refactor(common): rename execution context modules and types#1843
LNSD wants to merge 1 commit intomainfrom
lnsd/refactor-common-rename-plan-exec

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Feb 22, 2026

Align module and type names to remove legacy planning/query terminology in favor of clearer plan/exec naming.

  • Rename context::planningcontext::plan, context::querycontext::exec
  • Rename PlanningTablePlanTable, QueryEnvExecEnv
  • Rename PlanSqlErrorSqlError in both plan and exec contexts to eliminate stutter
  • Rename PlanningPlanSql error variant → PlanSql in flight handler
  • Update all downstream imports and type aliases across workspace

Note

Medium Risk
Broad rename/refactor across execution and planning call paths; behavior should be unchanged, but the large surface-area API rename risks missed references or mismatched error handling at integration boundaries.

Overview
Renames the query engine’s core abstractions to clearer plan vs exec terminology: context::planningcontext::plan (PlanningContextPlanContext) and context::querycontext::exec (QueryContextExecContext), along with associated errors (PlanSqlErrorSqlError) and docs.

Renames the runtime environment QueryEnvExecEnv (including exports and default_session_config) and the planning-only table provider PlanningTablePlanTable, then updates all downstream call sites (Flight server, admin API schema/manifest validation, derived dataset dumping, streaming query execution, and tests) to use the new modules/types and error variants.

Written by Cursor Bugbot for commit 8f9ea14. This will update automatically on new commits. Configure here.

Align module and type names to remove legacy `planning/query` terminology in favor of clearer `plan/exec` naming.

- Rename `context::planning` → `context::plan`, `context::query` → `context::exec`
- Rename `PlanningTable` → `PlanTable`, `QueryEnv` → `ExecEnv`
- Rename `PlanSqlError` → `SqlError` in both plan and exec contexts to eliminate stutter
- Rename `PlanningPlanSql` error variant → `PlanSql` in flight handler
- Update all downstream imports and type aliases across workspace

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD self-assigned this Feb 22, 2026
@LNSD LNSD marked this pull request as ready for review February 22, 2026 10:22
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.

1 participant