Commit 72b8a86
committed
refactor(planner): remove DataFusion from query planning path
Remove DataFusion SessionContext, UDF registration, catalog provider,
and all DataFusion-dependent helpers from QueryContext. Planning now
goes exclusively through nodedb-sql.
Deleted (~1700 lines):
- catalog.rs (DataFusion SchemaProvider)
- expr_convert.rs, sql_expr_convert.rs (DataFusion Expr converters)
- hints.rs (query hint extraction)
- stream_table/ (DataFusion table provider for change streams)
Simplified:
- context.rs: removed session field, UDF registration, inliner
- prepared/parser.rs: replaced DataFusion type inference with
sqlparser + nodedb-sql catalog lookup
- routing.rs: removed dead temp table register/deregister
- eval.rs: uses standalone DataFusion session (not QueryContext)
DataFusion remains only for:
- Procedural executor scalar expression evaluation (eval.rs)
- Function body validation at CREATE FUNCTION (validate.rs)
- UDF trait implementations (needed by above two)1 parent e259e65 commit 72b8a86
11 files changed
Lines changed: 161 additions & 1687 deletions
File tree
- nodedb/src/control
- planner
- procedural/executor
- stream_table
- server/pgwire/handler
- prepared
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | | - | |
11 | 7 | | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | | - | |
133 | | - | |
| 133 | + | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | | - | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments