Function mz_sql::plan::statement::ddl::check_partition_by

source ยท
fn check_partition_by(
    desc: &RelationDesc,
    partition_by: Vec<Ident>,
) -> Result<(), PlanError>
Expand description

Given a relation desc and a column list, checks that:

  • the column list is a prefix of the desc;
  • all the listed columns are types that have meaningful Persist-level ordering.