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
Remove the legacy Simple executor to simplify the codebase and reduce
maintenance burden. All queries now use the DataFusion planner, which
provides better performance and more features.
Changes:
- Delete simple_executor module (724 lines across 5 files)
- Remove ExecutionStrategy::Simple enum variant (breaking change)
- Remove CypherQuery::execute_simple() method
- Update all tests to use DataFusion execution
- Update documentation and examples
- Update Python bindings to remove Simple variant
Breaking Changes:
- Rust: ExecutionStrategy::Simple removed, use None or DataFusion
- Python: ExecutionStrategy.Simple removed, use None or DataFusion
All existing functionality is preserved - DataFusion supports all
features that Simple did with better optimization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The query expects a `HashMap<String, RecordBatch>` keyed by the labels and relationship types referenced in the Cypher text. Each record batch should expose the columns configured through `GraphConfig` (ID fields, property fields, etc.). Relationship mappings also expect a batch keyed by the relationship type (for example `KNOWS`) that contains the configured source/target ID columns and any optional property columns.
@@ -92,10 +89,10 @@ let config = GraphConfig::builder()
92
89
-`CypherQuery::new` parses Cypher text into the internal AST.
93
90
-`with_config` attaches the graph configuration used for validation and execution.
94
91
-`with_parameter` / `with_parameters` bind JSON-serializable values that can be referenced as `$param` in the Cypher text.
95
-
-`execute` is asynchronous and returns an Arrow `RecordBatch`. Pass `None`for the default DataFusion planner or `Some(ExecutionStrategy::Simple)` for the single-table executor. `ExecutionStrategy::LanceNative` is reserved for future native execution support and currently errors.
92
+
-`execute` is asynchronous and returns an Arrow `RecordBatch`. Pass `None`to use the default DataFusion planner. `ExecutionStrategy::LanceNative` is reserved for future native execution support and currently errors.
96
93
-`explain` is asynchronous and returns a formatted string containing the graph logical plan alongside the DataFusion logical and physical plans.
97
94
98
-
Queries with a single `MATCH` clause containing a path pattern are planned as joins using the provided mappings. Other queries can opt into the single-table projection/filter pipeline via `ExecutionStrategy::Simple` when DataFusion's planner is unnecessary.
95
+
All queries use the DataFusion planner for optimization and execution.
99
96
100
97
A builder (`CypherQueryBuilder`) is also available for constructing queries programmatically without parsing text.
101
98
@@ -116,7 +113,6 @@ Basic aggregations like `COUNT` are supported. Optional matches and subqueries a
116
113
-`semantic` – Lightweight semantic checks on the AST.
117
114
-`logical_plan` – Builders for graph logical plans.
0 commit comments