diff --git a/src/query/catalog/src/query_kind.rs b/src/query/catalog/src/query_kind.rs index d9efe35306ac..9e8744a29850 100644 --- a/src/query/catalog/src/query_kind.rs +++ b/src/query/catalog/src/query_kind.rs @@ -25,7 +25,6 @@ pub enum QueryKind { Explain, CopyIntoTable, CopyIntoLocation, - CreateTable, Update, Insert, Other, diff --git a/src/query/sql/src/planner/plans/plan.rs b/src/query/sql/src/planner/plans/plan.rs index d7f768eec72d..e886fefba18f 100644 --- a/src/query/sql/src/planner/plans/plan.rs +++ b/src/query/sql/src/planner/plans/plan.rs @@ -434,7 +434,6 @@ impl Plan { | Plan::OptimizePurge(_) | Plan::OptimizeCompactSegment(_) | Plan::OptimizeCompactBlock { .. } => QueryKind::Update, - Plan::CreateTable(_) => QueryKind::CreateTable, _ => QueryKind::Other, } } diff --git a/tests/sqllogictests/suites/tpch/join_order.test b/tests/sqllogictests/suites/tpch/join_order.test index c4cfe86159f3..fb91b7297f1c 100644 --- a/tests/sqllogictests/suites/tpch/join_order.test +++ b/tests/sqllogictests/suites/tpch/join_order.test @@ -689,8 +689,7 @@ HashJoin: INNER └── Scan: default.tpch_test.supplier (#0) (read rows: 1000) # Q15 -onlyif todo -statement ok +query T explain join with revenue as materialized ( select l_suppkey as supplier_no, @@ -721,6 +720,16 @@ where ) order by s_suppkey; +---- +HashJoin: INNER +├── Build +│ └── HashJoin: INNER +│ ├── Build +│ │ └── Scan: default.tpch_test.revenue (#1) (read rows: 1000) +│ └── Probe +│ └── Scan: default.tpch_test.supplier (#0) (read rows: 1000) +└── Probe + └── Scan: default.tpch_test.revenue (#2) (read rows: 1000) # Q16