You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sql): support constant queries without a FROM clause
Handle SELECT statements with no FROM clause (e.g. SELECT 1, SELECT
'hello' AS name, SELECT 1 + 2). The planner evaluates constant
expressions at planning time and emits a ConstantResult plan that
produces a single row without touching any engine.
- Add ConstantResult variant to SqlPlan with columns and values
- Evaluate literal, unary negation, and binary arithmetic/concat exprs
- Convert to a MetaOp::RawResponse physical task (zerompk-encoded)
- Dispatch RawResponse in the Data Plane executor without engine I/O
- Wire permission check (Read) for RawResponse tasks
- Handle ConstantResult in nodedb-lite query engine
0 commit comments