risingwave_frontend::handler::create_index

Function gen_create_index_plan

source
pub(crate) fn gen_create_index_plan(
    session: &SessionImpl,
    context: OptimizerContextRef,
    schema_name: String,
    table: Arc<TableCatalog>,
    index_table_name: String,
    columns: Vec<OrderByExpr>,
    include: Vec<Ident>,
    distributed_by: Vec<Expr>,
) -> Result<(PlanRef, PbTable, PbIndex), RwError>