From 31ae3f14f36bbf0b7bc25c8524da1f7b4592d092 Mon Sep 17 00:00:00 2001 From: Chen Zhang Date: Wed, 10 Jul 2024 16:11:24 +0800 Subject: [PATCH] remove duplicate cases --- .../ddl/customer_create.sql | 16 ---- .../ddl/customer_delete.sql | 1 - .../ddl/date_create.sql | 25 ------ .../ddl/date_delete.sql | 1 - .../ddl/lineorder_create.sql | 33 -------- .../ddl/lineorder_delete.sql | 1 - .../ddl/part_create.sql | 17 ---- .../ddl/part_delete.sql | 1 - .../ddl/supplier_create.sql | 15 ---- .../ddl/supplier_delete.sql | 1 - .../suites/ssb_unique_sql_zstd_p0/load.groovy | 82 ------------------- .../test_partiiton_sort.groovy | 34 -------- .../ssb_unique_sql_zstd_p0/sql/q1.1.sql | 24 ------ .../ssb_unique_sql_zstd_p0/sql/q1.2.sql | 24 ------ .../ssb_unique_sql_zstd_p0/sql/q1.3.sql | 25 ------ .../ssb_unique_sql_zstd_p0/sql/q2.1.sql | 26 ------ .../ssb_unique_sql_zstd_p0/sql/q2.2.sql | 27 ------ .../ssb_unique_sql_zstd_p0/sql/q2.3.sql | 26 ------ .../sql/q2.3_broadcast_join_sink_eof.sql | 36 -------- .../ssb_unique_sql_zstd_p0/sql/q3.1.sql | 28 ------- .../ssb_unique_sql_zstd_p0/sql/q3.2.sql | 28 ------- .../ssb_unique_sql_zstd_p0/sql/q3.3.sql | 30 ------- .../ssb_unique_sql_zstd_p0/sql/q3.4.sql | 30 ------- .../ssb_unique_sql_zstd_p0/sql/q4.1.sql | 30 ------- .../ssb_unique_sql_zstd_p0/sql/q4.2.sql | 31 ------- .../ssb_unique_sql_zstd_p0/sql/q4.3.sql | 29 ------- 26 files changed, 621 deletions(-) delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_create.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_delete.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_create.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_delete.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_create.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_delete.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_create.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_delete.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_create.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_delete.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/load.groovy delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.1.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.2.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.3.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.1.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.2.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3_broadcast_join_sink_eof.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.1.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.2.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.3.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.4.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.1.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.2.sql delete mode 100644 regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.3.sql diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_create.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_create.sql deleted file mode 100644 index d172400d82ec08..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_create.sql +++ /dev/null @@ -1,16 +0,0 @@ -CREATE TABLE IF NOT EXISTS `customer` ( - `c_custkey` int(11) NOT NULL COMMENT "", - `c_name` varchar(26) NOT NULL COMMENT "", - `c_address` varchar(41) NOT NULL COMMENT "", - `c_city` varchar(11) NOT NULL COMMENT "", - `c_nation` varchar(16) NOT NULL COMMENT "", - `c_region` varchar(13) NOT NULL COMMENT "", - `c_phone` varchar(16) NOT NULL COMMENT "", - `c_mktsegment` varchar(11) NOT NULL COMMENT "" -) -UNIQUE KEY (`c_custkey`) -DISTRIBUTED BY HASH(`c_custkey`) BUCKETS 10 -PROPERTIES ( -"compression"="zstd", -"replication_num" = "1" -); diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_delete.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_delete.sql deleted file mode 100644 index fe22a226fedf85..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/customer_delete.sql +++ /dev/null @@ -1 +0,0 @@ -truncate table customer; \ No newline at end of file diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_create.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_create.sql deleted file mode 100644 index 830ce3ce599c84..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_create.sql +++ /dev/null @@ -1,25 +0,0 @@ -CREATE TABLE IF NOT EXISTS `date` ( - `d_datekey` int(11) NOT NULL COMMENT "", - `d_date` varchar(20) NOT NULL COMMENT "", - `d_dayofweek` varchar(10) NOT NULL COMMENT "", - `d_month` varchar(11) NOT NULL COMMENT "", - `d_year` int(11) NOT NULL COMMENT "", - `d_yearmonthnum` int(11) NOT NULL COMMENT "", - `d_yearmonth` varchar(9) NOT NULL COMMENT "", - `d_daynuminweek` int(11) NOT NULL COMMENT "", - `d_daynuminmonth` int(11) NOT NULL COMMENT "", - `d_daynuminyear` int(11) NOT NULL COMMENT "", - `d_monthnuminyear` int(11) NOT NULL COMMENT "", - `d_weeknuminyear` int(11) NOT NULL COMMENT "", - `d_sellingseason` varchar(14) NOT NULL COMMENT "", - `d_lastdayinweekfl` int(11) NOT NULL COMMENT "", - `d_lastdayinmonthfl` int(11) NOT NULL COMMENT "", - `d_holidayfl` int(11) NOT NULL COMMENT "", - `d_weekdayfl` int(11) NOT NULL COMMENT "" -) -UNIQUE KEY (`d_datekey`) -DISTRIBUTED BY HASH(`d_datekey`) BUCKETS 1 -PROPERTIES ( -"compression"="zstd", -"replication_num" = "1" -); diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_delete.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_delete.sql deleted file mode 100644 index 12933cbbad92da..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/date_delete.sql +++ /dev/null @@ -1 +0,0 @@ -truncate table `date`; \ No newline at end of file diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_create.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_create.sql deleted file mode 100644 index d75a3f1ae39dc3..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_create.sql +++ /dev/null @@ -1,33 +0,0 @@ -CREATE TABLE IF NOT EXISTS `lineorder` ( - `lo_orderdate` int(11) NOT NULL COMMENT "", - `lo_orderkey` bigint(20) NOT NULL COMMENT "", - `lo_linenumber` bigint(20) NOT NULL COMMENT "", - `lo_custkey` int(11) NOT NULL COMMENT "", - `lo_partkey` int(11) NOT NULL COMMENT "", - `lo_suppkey` int(11) NOT NULL COMMENT "", - `lo_orderpriority` varchar(16) NOT NULL COMMENT "", - `lo_shippriority` int(11) NOT NULL COMMENT "", - `lo_quantity` bigint(20) NOT NULL COMMENT "", - `lo_extendedprice` bigint(20) NOT NULL COMMENT "", - `lo_ordtotalprice` bigint(20) NOT NULL COMMENT "", - `lo_discount` bigint(20) NOT NULL COMMENT "", - `lo_revenue` bigint(20) NOT NULL COMMENT "", - `lo_supplycost` bigint(20) NOT NULL COMMENT "", - `lo_tax` bigint(20) NOT NULL COMMENT "", - `lo_commitdate` bigint(20) NOT NULL COMMENT "", - `lo_shipmode` varchar(11) NOT NULL COMMENT "" -) -UNIQUE KEY (`lo_orderdate`,`lo_orderkey`,`lo_linenumber`) -PARTITION BY RANGE(`lo_orderdate`) -(PARTITION p1992 VALUES [("-2147483648"), ("19930101")), -PARTITION p1993 VALUES [("19930101"), ("19940101")), -PARTITION p1994 VALUES [("19940101"), ("19950101")), -PARTITION p1995 VALUES [("19950101"), ("19960101")), -PARTITION p1996 VALUES [("19960101"), ("19970101")), -PARTITION p1997 VALUES [("19970101"), ("19980101")), -PARTITION p1998 VALUES [("19980101"), ("19990101"))) -DISTRIBUTED BY HASH(`lo_orderkey`) BUCKETS 48 -PROPERTIES ( -"compression"="zstd", -"replication_num" = "1" -); diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_delete.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_delete.sql deleted file mode 100644 index 329e040060edc6..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/lineorder_delete.sql +++ /dev/null @@ -1 +0,0 @@ -truncate table lineorder; \ No newline at end of file diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_create.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_create.sql deleted file mode 100644 index becc59157c388b..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_create.sql +++ /dev/null @@ -1,17 +0,0 @@ -CREATE TABLE IF NOT EXISTS `part` ( - `p_partkey` int(11) NOT NULL COMMENT "", - `p_name` varchar(23) NOT NULL COMMENT "", - `p_mfgr` varchar(7) NOT NULL COMMENT "", - `p_category` varchar(8) NOT NULL COMMENT "", - `p_brand` varchar(10) NOT NULL COMMENT "", - `p_color` varchar(12) NOT NULL COMMENT "", - `p_type` varchar(26) NOT NULL COMMENT "", - `p_size` int(11) NOT NULL COMMENT "", - `p_container` varchar(11) NOT NULL COMMENT "" -) -UNIQUE KEY (`p_partkey`) -DISTRIBUTED BY HASH(`p_partkey`) BUCKETS 10 -PROPERTIES ( -"compression"="zstd", -"replication_num" = "1" -); diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_delete.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_delete.sql deleted file mode 100644 index 02c6abd2539add..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/part_delete.sql +++ /dev/null @@ -1 +0,0 @@ -truncate table `part`; \ No newline at end of file diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_create.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_create.sql deleted file mode 100644 index 783946219627f0..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_create.sql +++ /dev/null @@ -1,15 +0,0 @@ -CREATE TABLE IF NOT EXISTS `supplier` ( - `s_suppkey` int(11) NOT NULL COMMENT "", - `s_name` varchar(26) NOT NULL COMMENT "", - `s_address` varchar(26) NOT NULL COMMENT "", - `s_city` varchar(11) NOT NULL COMMENT "", - `s_nation` varchar(16) NOT NULL COMMENT "", - `s_region` varchar(13) NOT NULL COMMENT "", - `s_phone` varchar(16) NOT NULL COMMENT "" -) -UNIQUE KEY (`s_suppkey`) -DISTRIBUTED BY HASH(`s_suppkey`) BUCKETS 10 -PROPERTIES ( -"compression"="zstd", -"replication_num" = "1" -); diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_delete.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_delete.sql deleted file mode 100644 index 39e663134cabd0..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/ddl/supplier_delete.sql +++ /dev/null @@ -1 +0,0 @@ -truncate table `supplier`; \ No newline at end of file diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/load.groovy b/regression-test/suites/ssb_unique_sql_zstd_p0/load.groovy deleted file mode 100644 index 5e0a460569cb34..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/load.groovy +++ /dev/null @@ -1,82 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -// Most of the cases are copied from https://github.com/trinodb/trino/tree/master -// /testing/trino-product-tests/src/main/resources/sql-tests/testcases -// and modified by Doris. - -// Note: To filter out tables from sql files, use the following one-liner comamnd -// sed -nr 's/.*tables: (.*)$/\1/gp' /path/to/*.sql | sed -nr 's/,/\n/gp' | sort | uniq -suite("load") { - def tables = ["customer", "lineorder", "part", "date", "supplier"] - def columns = ["""c_custkey,c_name,c_address,c_city,c_nation,c_region,c_phone,c_mktsegment,no_use""", - """lo_orderkey,lo_linenumber,lo_custkey,lo_partkey,lo_suppkey,lo_orderdate,lo_orderpriority, - lo_shippriority,lo_quantity,lo_extendedprice,lo_ordtotalprice,lo_discount, - lo_revenue,lo_supplycost,lo_tax,lo_commitdate,lo_shipmode,lo_dummy""", - """p_partkey,p_name,p_mfgr,p_category,p_brand,p_color,p_type,p_size,p_container,p_dummy""", - """d_datekey,d_date,d_dayofweek,d_month,d_year,d_yearmonthnum,d_yearmonth, - d_daynuminweek,d_daynuminmonth,d_daynuminyear,d_monthnuminyear,d_weeknuminyear, - d_sellingseason,d_lastdayinweekfl,d_lastdayinmonthfl,d_holidayfl,d_weekdayfl,d_dummy""", - """s_suppkey,s_name,s_address,s_city,s_nation,s_region,s_phone,s_dummy"""] - - for (String table in tables) { - sql new File("""${context.file.parent}/ddl/${table}_create.sql""").text - sql new File("""${context.file.parent}/ddl/${table}_delete.sql""").text - } - def i = 0 - for (String tableName in tables) { - streamLoad { - // a default db 'regression_test' is specified in - // ${DORIS_HOME}/conf/regression-conf.groovy - table tableName - - // default label is UUID: - // set 'label' UUID.randomUUID().toString() - - // default column_separator is specify in doris fe config, usually is '\t'. - // this line change to ',' - set 'column_separator', '|' - set 'compress_type', 'GZ' - set 'columns', columns[i] - - - // relate to ${DORIS_HOME}/regression-test/data/demo/streamload_input.csv. - // also, you can stream load a http stream, e.g. http://xxx/some.csv - file """${getS3Url()}/regression/ssb/sf0.1/${tableName}.tbl.gz""" - - time 10000 // limit inflight 10s - - // stream load action will check result, include Success status, and NumberTotalRows == NumberLoadedRows - - // if declared a check callback, the default check condition will ignore. - // So you must check all condition - check { result, exception, startTime, endTime -> - if (exception != null) { - throw exception - } - log.info("Stream load result: ${result}".toString()) - def json = parseJson(result) - assertEquals("success", json.Status.toLowerCase()) - assertEquals(json.NumberTotalRows, json.NumberLoadedRows) - assertTrue(json.NumberLoadedRows > 0 && json.LoadBytes > 0) - } - } - i++ - } - - sql """ sync """ -} diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy b/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy deleted file mode 100644 index d9f6776b3ace9b..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy +++ /dev/null @@ -1,34 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -suite("test_partition_sort") { - sql "use regression_test_ssb_unique_sql_zstd_p0" - qt_select0 """ select count() from part; """ - qt_select1 """ select count(distinct p_name), count(distinct p_color),count(distinct rn),count(distinct rk),count(distinct dr) from ( - select p_name, p_color , row_number() over(partition by p_name order by p_color) as rn,rank() over(partition by p_name order by p_color) as rk, - dense_rank() over(partition by p_name order by p_color) as dr from part) as t; """ - - qt_select2 """ select * from ( - select p_name, p_color , row_number() over(partition by p_name order by p_color) as rn from part) as t where rn=14 order by 1,2,3; """ - - qt_select3 """ select * from ( select p_name, p_color , rank() over(partition by p_name order by p_color) as rn from part) as t where rn=11 order by 1,2,3; """ - - qt_select4 """ select * from ( select p_name, p_color , dense_rank() over(partition by p_name order by p_color) as rn from part) as t where rn=10 order by 1,2,3; """ - - - -} \ No newline at end of file diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.1.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.1.sql deleted file mode 100644 index 4ef15e93ea2f5f..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.1.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT SUM(lo_extendedprice*lo_discount) AS -REVENUE -FROM lineorder, date -WHERE lo_orderdate = d_datekey -AND d_year = 1993 -AND lo_discount BETWEEN 1 AND 3 -AND lo_quantity < 25; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.2.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.2.sql deleted file mode 100644 index 1b8442bd939454..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.2.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT SUM(lo_extendedprice*lo_discount) AS -REVENUE -FROM lineorder, date -WHERE lo_orderdate = d_datekey -AND d_yearmonth = 'Jan1994' -AND lo_discount BETWEEN 4 AND 6 -AND lo_quantity BETWEEN 26 AND 35; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.3.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.3.sql deleted file mode 100644 index ed6e51b1cfd264..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q1.3.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT SUM(lo_extendedprice*lo_discount) AS -REVENUE -FROM lineorder, date -WHERE lo_orderdate = d_datekey -AND d_weeknuminyear= 6 -AND d_year = 1994 -AND lo_discount BETWEEN 5 AND 7 -AND lo_quantity BETWEEN 26 AND 35; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.1.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.1.sql deleted file mode 100644 index e1a1f52d189e4e..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.1.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT SUM(lo_revenue), d_year, p_brand -FROM lineorder, date, part, supplier -WHERE lo_orderdate = d_datekey -AND lo_partkey = p_partkey -AND lo_suppkey = s_suppkey -AND p_category = 'MFGR#12' -AND s_region = 'AMERICA' -GROUP BY d_year, p_brand -ORDER BY d_year, p_brand; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.2.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.2.sql deleted file mode 100644 index 3db617011947ef..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.2.sql +++ /dev/null @@ -1,27 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT SUM(lo_revenue), d_year, p_brand -FROM lineorder, date, part, supplier -WHERE lo_orderdate = d_datekey -AND lo_partkey = p_partkey -AND lo_suppkey = s_suppkey -AND p_brand BETWEEN 'MFGR#2221' -AND 'MFGR#2228' -AND s_region = 'ASIA' -GROUP BY d_year, p_brand -ORDER BY d_year, p_brand; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3.sql deleted file mode 100644 index b70ca90666b8fe..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3.sql +++ /dev/null @@ -1,26 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT SUM(lo_revenue), d_year, p_brand -FROM lineorder, date, part, supplier -WHERE lo_orderdate = d_datekey -AND lo_partkey = p_partkey -AND lo_suppkey = s_suppkey -AND p_brand = 'MFGR#2239' -AND s_region = 'EUROPE' -GROUP BY d_year, p_brand -ORDER BY d_year, p_brand; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3_broadcast_join_sink_eof.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3_broadcast_join_sink_eof.sql deleted file mode 100644 index 763df454a97e34..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q2.3_broadcast_join_sink_eof.sql +++ /dev/null @@ -1,36 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT - /*+SET_VAR(experimental_enable_pipeline_engine=false,parallel_fragment_exec_instance_num=2)*/ - SUM(lo_revenue), - d_year, - p_brand -FROM - lineorder - join [broadcast] date on lo_orderdate = d_datekey - join [broadcast] part on lo_partkey = p_partkey - join [broadcast] supplier on lo_suppkey = s_suppkey -WHERE - p_brand = 'MFGR#2239' - AND s_region = 'EUROPE' -GROUP BY - d_year, - p_brand -ORDER BY - d_year, - p_brand; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.1.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.1.sql deleted file mode 100644 index 70f17d789b45a2..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.1.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT c_nation, s_nation, d_year, -SUM(lo_revenue) AS REVENUE -FROM customer, lineorder, supplier, date -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_orderdate = d_datekey -AND c_region = 'ASIA' -AND s_region = 'ASIA' -AND d_year >= 1992 AND d_year <= 1997 -GROUP BY c_nation, s_nation, d_year -ORDER BY d_year ASC, REVENUE DESC; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.2.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.2.sql deleted file mode 100644 index a416fbea8b1768..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.2.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT c_city, s_city, d_year, sum(lo_revenue) -AS REVENUE -FROM customer, lineorder, supplier, date -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_orderdate = d_datekey -AND c_nation = 'UNITED STATES' -AND s_nation = 'UNITED STATES' -AND d_year >= 1992 AND d_year <= 1997 -GROUP BY c_city, s_city, d_year -ORDER BY d_year ASC, REVENUE DESC; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.3.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.3.sql deleted file mode 100644 index 98e29b72e70bf0..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.3.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT c_city, s_city, d_year, SUM(lo_revenue) -AS REVENUE -FROM customer, lineorder, supplier, date -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_orderdate = d_datekey -AND (c_city='UNITED KI1' -OR c_city='UNITED KI5') -AND (s_city='UNITED KI1' -OR s_city='UNITED KI5') -AND d_year >= 1992 AND d_year <= 1997 -GROUP BY c_city, s_city, d_year -ORDER BY d_year ASC, REVENUE DESC; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.4.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.4.sql deleted file mode 100644 index 65fe992ca4f12b..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q3.4.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT c_city, s_city, d_year, SUM(lo_revenue) -AS REVENUE -FROM customer, lineorder, supplier, date -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_orderdate = d_datekey -AND (c_city='UNITED KI1' -OR c_city='UNITED KI5') -AND (s_city='UNITED KI1' -OR s_city='UNITED KI5') -AND d_yearmonth = 'Dec1997' -GROUP BY c_city, s_city, d_year -ORDER BY d_year ASC, REVENUE DESC; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.1.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.1.sql deleted file mode 100644 index bdcd730bf922fe..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.1.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT d_year, c_nation, -SUM(lo_revenue - lo_supplycost) AS PROFIT -FROM date, customer, supplier, part, lineorder -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_partkey = p_partkey -AND lo_orderdate = d_datekey -AND c_region = 'AMERICA' -AND s_region = 'AMERICA' -AND (p_mfgr = 'MFGR#1' -OR p_mfgr = 'MFGR#2') -GROUP BY d_year, c_nation -ORDER BY d_year, c_nation; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.2.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.2.sql deleted file mode 100644 index 24c82cf682d155..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.2.sql +++ /dev/null @@ -1,31 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT d_year, s_nation, p_category, -SUM(lo_revenue - lo_supplycost) AS PROFIT -FROM date, customer, supplier, part, lineorder -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_partkey = p_partkey -AND lo_orderdate = d_datekey -AND c_region = 'AMERICA' -AND s_region = 'AMERICA' -AND (d_year = 1997 OR d_year = 1998) -AND (p_mfgr = 'MFGR#1' -OR p_mfgr = 'MFGR#2') -GROUP BY d_year, s_nation, p_category -ORDER BY d_year, s_nation, p_category; diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.3.sql b/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.3.sql deleted file mode 100644 index 0dcc08bd26c8ad..00000000000000 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/sql/q4.3.sql +++ /dev/null @@ -1,29 +0,0 @@ --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, --- software distributed under the License is distributed on an --- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --- KIND, either express or implied. See the License for the --- specific language governing permissions and limitations --- under the License. - -SELECT d_year, s_city, p_brand, -SUM(lo_revenue - lo_supplycost) AS PROFIT -FROM date, customer, supplier, part, lineorder -WHERE lo_custkey = c_custkey -AND lo_suppkey = s_suppkey -AND lo_partkey = p_partkey -AND lo_orderdate = d_datekey -AND s_nation = 'UNITED STATES' -AND (d_year = 1997 OR d_year = 1998) -AND p_category = 'MFGR#14' -GROUP BY d_year, s_city, p_brand -ORDER BY d_year, s_city, p_brand;