mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 09:50:40 +00:00
feat: show databases and show tables (#276)
* feat: ensure time index column can't be included in primary key * feat: sql parser supports show tables statement * feat: impl show databases and show tables, #183 * feat: impl like expression for show databases/tables and add tests * fix: typo * fix: address CR problems
This commit is contained in:
@@ -45,11 +45,12 @@ where
|
||||
/// Converts statement to logical plan using datafusion planner
|
||||
fn statement_to_plan(&self, statement: Statement) -> Result<LogicalPlan> {
|
||||
match statement {
|
||||
Statement::ShowDatabases(_) => {
|
||||
todo!("Currently not supported")
|
||||
}
|
||||
Statement::Query(qb) => self.query_to_plan(qb),
|
||||
Statement::Create(_) | Statement::Alter(_) | Statement::Insert(_) => unreachable!(),
|
||||
Statement::ShowTables(_)
|
||||
| Statement::ShowDatabases(_)
|
||||
| Statement::Create(_)
|
||||
| Statement::Alter(_)
|
||||
| Statement::Insert(_) => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user