Function mz_adapter::coord::peek::create_fast_path_plan
source ยท pub fn create_fast_path_plan<T: Timestamp>(
dataflow_plan: &mut DataflowDescription<OptimizedMirRelationExpr, (), T>,
view_id: GlobalId,
finishing: Option<&RowSetFinishing>,
persist_fast_path_limit: usize,
) -> Result<Option<FastPathPlan>, OptimizerError>
Expand description
Determine if the dataflow plan can be implemented without an actual dataflow.
If the optimized plan is a Constant
or a Get
of a maintained arrangement,
we can avoid building a dataflow (and either just return the results, or peek
out of the arrangement, respectively).