Skip to main content

Module df_planner

Module df_planner 

Source
Expand description

Hybrid physical planner for DataFusion integration.

This module provides HybridPhysicalPlanner, which converts Cypher’s LogicalPlan into a DataFusion ExecutionPlan tree. The “hybrid” nature refers to the mix of:

  • Custom graph operators: GraphScanExec, GraphTraverseExec, GraphShortestPathExec
  • Native DataFusion operators: FilterExec, AggregateExec, SortExec, etc.

§Architecture

LogicalPlan (Cypher)
       │
       ▼
┌────────────────────┐
│HybridPhysicalPlanner│
│                    │
│ Graph ops → Custom │
│ Rel ops → DataFusion│
└────────────────────┘
       │
       ▼
ExecutionPlan (DataFusion)

§Expression Translation

Cypher expressions are translated to DataFusion expressions using cypher_expr_to_df from the df_expr module.

Structs§

HybridPhysicalPlanner
Hybrid physical planner that produces DataFusion ExecutionPlan trees.