quill_sql/plan/logical_plan/
create_index.rs

1use crate::catalog::SchemaRef;
2use crate::plan::logical_plan::OrderByExpr;
3use crate::utils::table_ref::TableReference;
4
5#[derive(derive_new::new, Debug, Clone)]
6pub struct CreateIndex {
7    pub index_name: String,
8    pub table: TableReference,
9    pub table_schema: SchemaRef,
10    pub columns: Vec<OrderByExpr>,
11}
12
13impl std::fmt::Display for CreateIndex {
14    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15        write!(f, "CreateIndex: {}", self.index_name)
16    }
17}