risingwave_frontend::handler::create_mv

Function gen_create_mv_plan

source
pub fn gen_create_mv_plan(
    session: &SessionImpl,
    context: OptimizerContextRef,
    query: Query,
    name: ObjectName,
    columns: Vec<Ident>,
    emit_mode: Option<EmitMode>,
) -> Result<(PlanRef, PbTable), RwError>
Expand description

Bind and generate create MV plan, return plan and mv table info.