Expand description
Planner data structures shared between SQL parsing and execution.
The crate exposes:
plan_graphfor the serialized DAG representation exchanged with tooling.plansfor high-level logical plan structures emitted by the SQL layer.validationhelpers that enforce naming and schema invariants while plans are being assembled.conversionutilities for converting SQL AST nodes to Plan types.traversalgeneric iterative traversal utilities for deeply nested ASTs.
Modules are re-exported so downstream crates can use llkv_plan::* when they
only need a subset of the functionality.
Re-exports§
pub use canonical::canonical_scalar_from_plan_value;pub use conversion::RangeSelectRows;pub use conversion::extract_rows_from_range;pub use subquery_correlation::SUBQUERY_CORRELATED_PLACEHOLDER_PREFIX;pub use table_scan::TableScanProjectionSpec;pub use table_scan::build_table_scan_plan;pub use traversal::TransformFrame;pub use traversal::Traversable;pub use traversal::traverse_postorder;pub use plan_graph::*;pub use plans::*;
Modules§
- canonical
- Canonical scalar helpers for planner consumers.
- conversion
- Conversion utilities from SQL AST to Plan types.
- plan_
graph - Planner graph intermediate representation (IR).
- plans
- Logical query plan structures for LLKV.
- subquery_
correlation - Correlated subquery bookkeeping shared across SQL planning and execution.
- table_
scan - traversal
- Generic iterative traversal utilities for AST-like structures.
- validation
- Shared validation utilities for plan construction.
Structs§
- Canonical
Row - Canonical row representation used for hashing and equality checks.
- Domain
Program - Owned
Filter - Program
Compiler - Program
Set
Enums§
- Canonical
Scalar - Canonical scalar value with stable hashing semantics.
- Domain
Op - EvalOp
- Owned
Operator
Functions§
- add_
interval_ to_ date32 - Add an interval to a
Date32value, returning the adjustedDate32days. - normalize_
predicate - parse_
date32_ literal - Parse a SQL
DATE 'YYYY-MM-DD'literal into the ArrowDate32encoding (days since the Unix epoch). - parse_
interval_ literal - subtract_
interval_ from_ date32 - Subtract an interval from a
Date32value, returning the adjusted days.