Expand description
SQL compiler orchestrator — single entry point for LogicalPlan → StreamingQuery.
compile_streaming_query coordinates the full compilation pipeline:
- Extract pipelines from a
DataFusion[LogicalPlan] - Detect breakers (stateful operators) → return
Nonefor plans that can’t be fully compiled - Compile each pipeline segment via
ExecutablePipeline::try_compile - Wire each compiled pipeline to a
super::PipelineBridge+super::BridgeConsumer - Assemble into a
StreamingQueryready for execution
§Usage
ⓘ
use laminar_core::compiler::orchestrate::compile_streaming_query;
use laminar_core::compiler::{CompilerCache, QueryConfig};
let mut cache = CompilerCache::new(64)?;
let config = QueryConfig::default();
match compile_streaming_query(sql, &logical_plan, &mut cache, &config)? {
Some(compiled) => { /* use compiled.query, compiled.source_plan, etc. */ }
None => { /* fall back to DataFusion interpreted execution */ }
}Structs§
- Compiled
Streaming Query - Result of successful compilation — ready for execution.
Functions§
- compile_
streaming_ query - Attempts to compile a
DataFusion[LogicalPlan] into aStreamingQuery.