Skip to content

Commit

Permalink
Feat(test): add more passing tpcds tests (#3110)
Browse files Browse the repository at this point in the history
* add more tests

* add more tests

* rm 16 and 21

* add more tests

* add

* add

* add

* add

* rm 40

* add test
  • Loading branch information
fool1280 committed Mar 9, 2024
1 parent 1c70226 commit 88033da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/fixtures/optimizer/tpc-ds/tpc-ds.sql
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 4
--------------------------------------
# execute: true
WITH year_total
AS (SELECT c_customer_id customer_id,
c_first_name customer_first_name,
Expand Down Expand Up @@ -1628,6 +1629,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 11
--------------------------------------
# execute: true
WITH year_total
AS (SELECT c_customer_id customer_id,
c_first_name customer_first_name
Expand Down Expand Up @@ -2449,6 +2451,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 17
--------------------------------------
# execute: true
SELECT i_item_id,
i_item_desc,
s_state,
Expand Down Expand Up @@ -2638,6 +2641,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 19
--------------------------------------
# execute: true
SELECT i_brand_id brand_id,
i_brand brand,
i_manufact_id,
Expand Down Expand Up @@ -4132,6 +4136,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 34
--------------------------------------
# execute: true
SELECT c_last_name,
c_first_name,
c_salutation,
Expand Down Expand Up @@ -5333,6 +5338,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 46
--------------------------------------
# execute: true
SELECT c_last_name,
c_first_name,
ca_city,
Expand Down Expand Up @@ -5919,6 +5925,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 50
--------------------------------------
# execute: true
SELECT s_store_name,
s_company_id,
s_street_number,
Expand Down Expand Up @@ -8132,6 +8139,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 66
--------------------------------------
# execute: true
SELECT w_warehouse_name,
w_warehouse_sq_ft,
w_city,
Expand Down Expand Up @@ -9038,6 +9046,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 68
--------------------------------------
# execute: true
SELECT c_last_name,
c_first_name,
ca_city,
Expand Down Expand Up @@ -9580,6 +9589,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 73
--------------------------------------
# execute: true
SELECT c_last_name,
c_first_name,
c_salutation,
Expand Down Expand Up @@ -9667,6 +9677,7 @@ ORDER BY
--------------------------------------
-- TPC-DS 74
--------------------------------------
# execute: true
WITH year_total
AS (SELECT c_customer_id customer_id,
c_first_name customer_first_name,
Expand Down Expand Up @@ -9826,6 +9837,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 75
--------------------------------------
# execute: true
WITH all_sales
AS (SELECT d_year,
i_brand_id,
Expand Down Expand Up @@ -10030,6 +10042,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 76
--------------------------------------
# execute: true
SELECT channel,
col_name,
d_year,
Expand Down Expand Up @@ -10407,6 +10420,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 78
--------------------------------------
# execute: true
WITH ws
AS (SELECT d_year AS ws_sold_year,
ws_item_sk,
Expand Down Expand Up @@ -10909,6 +10923,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 81
--------------------------------------
# execute: true
WITH customer_total_return
AS (SELECT cr_returning_customer_sk AS ctr_customer_sk,
ca_state AS ctr_state,
Expand Down Expand Up @@ -12412,6 +12427,7 @@ LIMIT 100;
--------------------------------------
-- TPC-DS 97
--------------------------------------
# execute: true
WITH ssci
AS (SELECT ss_customer_sk customer_sk,
ss_item_sk item_sk
Expand Down

0 comments on commit 88033da

Please sign in to comment.