From 51ceceab52d533915bffcd880bac94d9b0bc154f Mon Sep 17 00:00:00 2001 From: Yuchen Liang <70461588+yliang412@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:41:59 -0500 Subject: [PATCH] sqlplannertest: remove duplicated yaml that were disabled (#264) https://github.com/cmu-db/optd/pull/259 added new yml test cases instead of renaming the `.disabled` ones, removing them now. Signed-off-by: Yuchen Liang --- .../tests/tpch/q16.yml.disabled | 35 ---------------- .../tests/tpch/q20.yml.disabled | 42 ------------------- .../tests/tpch/q22.yml.disabled | 42 ------------------- .../tests/tpch/q4.yml.disabled | 26 ------------ 4 files changed, 145 deletions(-) delete mode 100644 optd-sqlplannertest/tests/tpch/q16.yml.disabled delete mode 100644 optd-sqlplannertest/tests/tpch/q20.yml.disabled delete mode 100644 optd-sqlplannertest/tests/tpch/q22.yml.disabled delete mode 100644 optd-sqlplannertest/tests/tpch/q4.yml.disabled diff --git a/optd-sqlplannertest/tests/tpch/q16.yml.disabled b/optd-sqlplannertest/tests/tpch/q16.yml.disabled deleted file mode 100644 index dfcb58ae..00000000 --- a/optd-sqlplannertest/tests/tpch/q16.yml.disabled +++ /dev/null @@ -1,35 +0,0 @@ -- sql: | - select - p_brand, - p_type, - p_size, - count(distinct ps_suppkey) as supplier_cnt - from - partsupp, - part - where - p_partkey = ps_partkey - and p_brand <> 'Brand#45' - and p_type not like 'MEDIUM POLISHED%' - and p_size in (49, 14, 23, 45, 19, 3, 36, 9) - and ps_suppkey not in ( - select - s_suppkey - from - supplier - where - s_comment like '%Customer%Complaints%' - ) - group by - p_brand, - p_type, - p_size - order by - supplier_cnt desc, - p_brand, - p_type, - p_size; - desc: TPC-H Q16 - before: ["include_sql:schema.sql"] - tasks: - - explain:logical_optd,physical_optd diff --git a/optd-sqlplannertest/tests/tpch/q20.yml.disabled b/optd-sqlplannertest/tests/tpch/q20.yml.disabled deleted file mode 100644 index e94ebb5e..00000000 --- a/optd-sqlplannertest/tests/tpch/q20.yml.disabled +++ /dev/null @@ -1,42 +0,0 @@ -- sql: | - select - s_name, - s_address - from - supplier, - nation - where - s_suppkey in ( - select - ps_suppkey - from - partsupp - where - ps_partkey in ( - select - p_partkey - from - part - where - p_name like 'indian%' - ) - and ps_availqty > ( - select - 0.5 * sum(l_quantity) - from - lineitem - where - l_partkey = ps_partkey - and l_suppkey = ps_suppkey - and l_shipdate >= date '1996-01-01' - and l_shipdate < date '1996-01-01' + interval '1' year - ) - ) - and s_nationkey = n_nationkey - and n_name = 'IRAQ' - order by - s_name; - desc: TPC-H Q20 - before: ["include_sql:schema.sql"] - tasks: - - explain:logical_optd,physical_optd diff --git a/optd-sqlplannertest/tests/tpch/q22.yml.disabled b/optd-sqlplannertest/tests/tpch/q22.yml.disabled deleted file mode 100644 index 55678824..00000000 --- a/optd-sqlplannertest/tests/tpch/q22.yml.disabled +++ /dev/null @@ -1,42 +0,0 @@ -- sql: | - select - cntrycode, - count(*) as numcust, - sum(c_acctbal) as totacctbal - from - ( - select - substring(c_phone from 1 for 2) as cntrycode, - c_acctbal - from - customer - where - substring(c_phone from 1 for 2) in - ('13', '31', '23', '29', '30', '18', '17') - and c_acctbal > ( - select - avg(c_acctbal) - from - customer - where - c_acctbal > 0.00 - and substring(c_phone from 1 for 2) in - ('13', '31', '23', '29', '30', '18', '17') - ) - and not exists ( - select - * - from - orders - where - o_custkey = c_custkey - ) - ) as custsale - group by - cntrycode - order by - cntrycode; - desc: TPC-H Q22 - before: ["include_sql:schema.sql"] - tasks: - - explain:logical_optd,physical_optd diff --git a/optd-sqlplannertest/tests/tpch/q4.yml.disabled b/optd-sqlplannertest/tests/tpch/q4.yml.disabled deleted file mode 100644 index a30999b2..00000000 --- a/optd-sqlplannertest/tests/tpch/q4.yml.disabled +++ /dev/null @@ -1,26 +0,0 @@ -- sql: | - select - o_orderpriority, - count(*) as order_count - from - orders - where - o_orderdate >= date '1993-07-01' - and o_orderdate < date '1993-07-01' + interval '3' month - and exists ( - select - * - from - lineitem - where - l_orderkey = o_orderkey - and l_commitdate < l_receiptdate - ) - group by - o_orderpriority - order by - o_orderpriority; - desc: TPC-H Q4 - before: ["include_sql:schema.sql"] - tasks: - - explain:logical_optd,physical_optd