pub async fn execute_streaming_sql(
sql: &str,
ctx: &SessionContext,
planner: &mut StreamingPlanner,
) -> Result<StreamingSqlResult, Error>Expand description
Executes a streaming SQL statement end-to-end.
This function performs the full pipeline:
- Parse SQL with streaming extensions (CREATE SOURCE/SINK, windows, etc.)
- Plan via
StreamingPlanner - For DDL: return the streaming plan as
DdlResult - For queries with streaming features: create
LogicalPlanviaDataFusion, execute, and return stream +QueryPlanmetadata - For standard SQL: pass through to
DataFusiondirectly
§Arguments
sql- The SQL statement to executectx-DataFusionsession context (should have streaming functions registered)planner- Streaming planner with registered sources/sinks
§Errors
Returns Error if parsing, planning, or execution fails.