fix: make "explain" executable in repl (#2157)

This commit is contained in:
LFC
2023-08-11 20:21:40 +08:00
committed by GitHub
parent 4fd1057764
commit 0b05c22be1

View File

@@ -94,7 +94,9 @@ impl Instance {
match stmt {
// TODO(LFC): Remove SQL execution branch here.
// Keep this because substrait can't handle much of SQLs now.
QueryStatement::Sql(Statement::Query(_)) | QueryStatement::Promql(_) => {
QueryStatement::Sql(Statement::Query(_))
| QueryStatement::Sql(Statement::Explain(_))
| QueryStatement::Promql(_) => {
let plan = self
.query_engine
.planner()