Expand description
Query planning module for the Alopex SQL dialect.
This module provides:
PlannerError: Error types for planning phaseResolvedType: Normalized type information for type checkingTypedExpr: Type-checked expressions with resolved typesLogicalPlan: Logical query plan representationNameResolver: Table and column reference resolutionTypeChecker: Expression type inference and validationPlanner: Main entry point for converting AST to LogicalPlan
Re-exports§
pub use aggregate_expr::AggregateExpr;pub use aggregate_expr::AggregateFunction;pub use knn_optimizer::KnnPattern;pub use knn_optimizer::SortDirection;pub use knn_optimizer::detect_knn_pattern;pub use logical_plan::JoinType;pub use logical_plan::LogicalPlan;pub use name_resolver::NameResolver;pub use name_resolver::ResolvedColumn;pub use type_checker::ScopedTable;pub use type_checker::TypeChecker;pub use typed_expr::ProjectedColumn;pub use typed_expr::Projection;pub use typed_expr::SortExpr;pub use typed_expr::TypedAssignment;pub use typed_expr::TypedExpr;pub use typed_expr::TypedExprKind;pub use types::ResolvedType;
Modules§
- aggregate_
expr - knn_
optimizer - logical_
plan - Logical plan representation for query execution.
- name_
resolver - Name resolution for SQL queries.
- type_
checker - Type checking module for the Alopex SQL dialect.
- typed_
expr - Type-checked expression types for the planner.
- types
- Type definitions for the Alopex SQL planner.
Structs§
- Planned
Statement - Planning output used by server-side routing analysis.
- Planner
- The SQL query planner.
- Planning
Diagnostic - SQL planning diagnostic attachment point for routing layers.
- Routing
Input - SQL-owned input for routing decision composition.
- Table
Reference - A table reference visible at the SQL planning boundary.
- Table
Reference Extractor - Extracts physical table references from SQL-owned planner structures.
Enums§
- Planner
Error - Planner errors for the Alopex SQL dialect.
- Planning
Diagnostic Severity - Severity for planning diagnostics.
- Table
Reference Access - Access class for a table reference.
- Table
Reference Source - Where a table reference was extracted from.
Functions§
- plan_
sql_ for_ routing - Parse and plan SQL without executing it, returning SQL-owned routing input.
- plan_
statement_ for_ routing - Plan a parsed statement without executing it, returning SQL-owned routing input.