blob: e6cbd22b92136fbd1262ab39ab5e31592ef34260 [file] [log] [blame]
# TPCDS-Q54
WITH my_customers AS
(SELECT DISTINCT c_customer_sk,
c_current_addr_sk
FROM
(SELECT cs_sold_date_sk sold_date_sk,
cs_bill_customer_sk customer_sk,
cs_item_sk item_sk
FROM catalog_sales
UNION ALL SELECT ws_sold_date_sk sold_date_sk,
ws_bill_customer_sk customer_sk,
ws_item_sk item_sk
FROM web_sales) cs_or_ws_sales,
item,
date_dim,
customer
WHERE sold_date_sk = d_date_sk
AND item_sk = i_item_sk
AND i_category = 'Women'
AND i_class = 'maternity'
AND c_customer_sk = cs_or_ws_sales.customer_sk
AND d_moy = 12
AND d_year = 1998 ),
my_revenue AS
(SELECT c_customer_sk,
sum(ss_ext_sales_price) AS revenue
FROM my_customers,
store_sales,
customer_address,
store,
date_dim
WHERE c_current_addr_sk = ca_address_sk
AND ca_county = s_county
AND ca_state = s_state
AND ss_sold_date_sk = d_date_sk
AND c_customer_sk = ss_customer_sk
AND d_month_seq BETWEEN
(SELECT DISTINCT d_month_seq+1
FROM date_dim
WHERE d_year = 1998
AND d_moy = 12) AND
(SELECT DISTINCT d_month_seq+3
FROM date_dim
WHERE d_year = 1998
AND d_moy = 12)
GROUP BY c_customer_sk),
segments AS
(SELECT cast((revenue/50) AS int) AS SEGMENT
FROM my_revenue)
SELECT SEGMENT,
count(*) AS num_customers,
SEGMENT*50 AS segment_base
FROM segments
GROUP BY SEGMENT
ORDER BY SEGMENT,
num_customers
LIMIT 100;
---- PLAN
Max Per-Host Resource Reservation: Memory=91.02MB Threads=11
Per-Host Resource Estimates: Memory=554MB
F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=554.44MB mem-reservation=91.02MB thread-reservation=11 runtime-filters-memory=8.00MB
PLAN-ROOT SINK
| output exprs: SEGMENT, count(*), CAST(SEGMENT AS BIGINT) * CAST(50 AS BIGINT)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
28:TOP-N [LIMIT=100]
| order by: SEGMENT ASC, count(*) ASC
| mem-estimate=1.17KB mem-reservation=0B thread-reservation=0
| tuple-ids=23 row-size=12B cardinality=100
| in pipelines: 28(GETNEXT), 27(OPEN)
|
27:AGGREGATE [FINALIZE]
| output: count(*)
| group by: CAST((sum(ss_ext_sales_price) / CAST(50 AS DECIMAL(3,0))) AS INT)
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 27(GETNEXT), 26(OPEN)
|
26:AGGREGATE [FINALIZE]
| output: sum(ss_ext_sales_price)
| group by: c_customer_sk
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 26(GETNEXT), 10(OPEN)
|
25:NESTED LOOP JOIN [INNER JOIN]
| predicates: CAST(d_month_seq AS BIGINT) <= d_month_seq + 3
| mem-estimate=8B mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11,12,14,17 row-size=131B cardinality=18.94K
| in pipelines: 10(GETNEXT), 19(OPEN)
|
|--19:CARDINALITY CHECK
| | limit: 1
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=1
| | in pipelines: 19(GETNEXT), 18(OPEN)
| |
| 18:AGGREGATE [FINALIZE]
| | group by: CAST(d_month_seq AS BIGINT) + CAST(3 AS BIGINT)
| | limit: 2
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=2
| | in pipelines: 18(GETNEXT), 17(OPEN)
| |
| 17:SCAN HDFS [tpcds_parquet.date_dim]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=16 row-size=12B cardinality=108
| in pipelines: 17(GETNEXT)
|
24:NESTED LOOP JOIN [INNER JOIN]
| predicates: CAST(d_month_seq AS BIGINT) >= d_month_seq + 1
| mem-estimate=8B mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11,12,14 row-size=123B cardinality=18.94K
| in pipelines: 10(GETNEXT), 16(OPEN)
|
|--16:CARDINALITY CHECK
| | limit: 1
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=1
| | in pipelines: 16(GETNEXT), 15(OPEN)
| |
| 15:AGGREGATE [FINALIZE]
| | group by: CAST(d_month_seq AS BIGINT) + CAST(1 AS BIGINT)
| | limit: 2
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=2
| | in pipelines: 15(GETNEXT), 14(OPEN)
| |
| 14:SCAN HDFS [tpcds_parquet.date_dim]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=13 row-size=12B cardinality=108
| in pipelines: 14(GETNEXT)
|
23:HASH JOIN [INNER JOIN]
| hash predicates: ss_sold_date_sk = d_date_sk
| fk/pk conjuncts: ss_sold_date_sk = d_date_sk
| runtime filters: RF000[bloom] <- d_date_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,7,10,11,12 row-size=115B cardinality=18.94K
| in pipelines: 10(GETNEXT), 13(OPEN)
|
|--13:SCAN HDFS [tpcds_parquet.date_dim]
| HDFS partitions=1/1 files=1 size=2.15MB
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=12 row-size=8B cardinality=73.05K
| in pipelines: 13(GETNEXT)
|
22:HASH JOIN [INNER JOIN]
| hash predicates: ca_state = s_state, ca_county = s_county
| fk/pk conjuncts: none
| runtime filters: RF002[bloom] <- s_state, RF003[bloom] <- s_county
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,7,10,11 row-size=107B cardinality=18.94K
| in pipelines: 10(GETNEXT), 12(OPEN)
|
|--12:SCAN HDFS [tpcds_parquet.store]
| HDFS partitions=1/1 files=1 size=9.93KB
| stored statistics:
| table: rows=12 size=9.93KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=12
| mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=11 row-size=43B cardinality=12
| in pipelines: 12(GETNEXT)
|
21:HASH JOIN [INNER JOIN]
| hash predicates: c_current_addr_sk = ca_address_sk
| fk/pk conjuncts: c_current_addr_sk = ca_address_sk
| runtime filters: RF006[bloom] <- ca_address_sk
| mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0
| tuple-ids=9,7,10 row-size=64B cardinality=2.88M
| in pipelines: 10(GETNEXT), 11(OPEN)
|
|--11:SCAN HDFS [tpcds_parquet.customer_address]
| HDFS partitions=1/1 files=1 size=1.16MB
| runtime filters: RF002[bloom] -> ca_state, RF003[bloom] -> ca_county
| stored statistics:
| table: rows=50.00K size=1.16MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=50.00K
| mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=10 row-size=44B cardinality=50.00K
| in pipelines: 11(GETNEXT)
|
20:HASH JOIN [INNER JOIN]
| hash predicates: ss_customer_sk = c_customer_sk
| fk/pk conjuncts: ss_customer_sk = c_customer_sk
| runtime filters: RF008[bloom] <- c_customer_sk
| mem-estimate=34.00MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=9,7 row-size=20B cardinality=2.88M
| in pipelines: 10(GETNEXT), 09(OPEN)
|
|--09:AGGREGATE [FINALIZE]
| | group by: c_customer_sk, c_current_addr_sk
| | mem-estimate=34.00MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 09(GETNEXT), 01(OPEN), 02(OPEN)
| |
| 08:HASH JOIN [INNER JOIN]
| | hash predicates: customer_sk = c_customer_sk
| | fk/pk conjuncts: assumed fk/pk
| | runtime filters: RF010[bloom] <- c_customer_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4,5,6 row-size=82B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 05(OPEN)
| |
| |--05:SCAN HDFS [tpcds_parquet.customer]
| | HDFS partitions=1/1 files=1 size=5.49MB
| | runtime filters: RF006[bloom] -> tpcds_parquet.customer.c_current_addr_sk
| | stored statistics:
| | table: rows=100.00K size=5.49MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=100.00K
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=6 row-size=8B cardinality=100.00K
| | in pipelines: 05(GETNEXT)
| |
| 07:HASH JOIN [INNER JOIN]
| | hash predicates: sold_date_sk = d_date_sk
| | fk/pk conjuncts: assumed fk/pk
| | runtime filters: RF012[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4,5 row-size=74B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 04(OPEN)
| |
| |--04:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=5 row-size=12B cardinality=108
| | in pipelines: 04(GETNEXT)
| |
| 06:HASH JOIN [INNER JOIN]
| | hash predicates: item_sk = i_item_sk
| | fk/pk conjuncts: assumed fk/pk
| | runtime filters: RF014[bloom] <- i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4 row-size=62B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 03(OPEN)
| |
| |--03:SCAN HDFS [tpcds_parquet.item]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category = 'Women', i_class = 'maternity'
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category = 'Women', i_class = 'maternity'
| | parquet dictionary predicates: i_category = 'Women', i_class = 'maternity'
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=4 row-size=46B cardinality=57
| | in pipelines: 03(GETNEXT)
| |
| 00:UNION
| | pass-through-operands: all
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=16B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| |--02:SCAN HDFS [tpcds_parquet.web_sales]
| | HDFS partitions=1/1 files=2 size=45.09MB
| | runtime filters: RF010[bloom] -> tpcds_parquet.web_sales.ws_bill_customer_sk, RF012[bloom] -> tpcds_parquet.web_sales.ws_sold_date_sk, RF014[bloom] -> tpcds_parquet.web_sales.ws_item_sk
| | stored statistics:
| | table: rows=719.38K size=45.09MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=644.77K
| | mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| | tuple-ids=1 row-size=16B cardinality=719.38K
| | in pipelines: 02(GETNEXT)
| |
| 01:SCAN HDFS [tpcds_parquet.catalog_sales]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF010[bloom] -> tpcds_parquet.catalog_sales.cs_bill_customer_sk, RF012[bloom] -> tpcds_parquet.catalog_sales.cs_sold_date_sk, RF014[bloom] -> tpcds_parquet.catalog_sales.cs_item_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=144.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=0 row-size=16B cardinality=1.44M
| in pipelines: 01(GETNEXT)
|
10:SCAN HDFS [tpcds_parquet.store_sales]
HDFS partitions=1824/1824 files=1824 size=200.95MB
runtime filters: RF000[bloom] -> ss_sold_date_sk, RF008[bloom] -> ss_customer_sk
stored statistics:
table: rows=2.88M size=200.95MB
partitions: 1824/1824 rows=2.88M
columns: all
extrapolated-rows=disabled max-scan-range-rows=130.09K
mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
tuple-ids=9 row-size=12B cardinality=2.88M
in pipelines: 10(GETNEXT)
---- DISTRIBUTEDPLAN
Max Per-Host Resource Reservation: Memory=93.95MB Threads=30
Per-Host Resource Estimates: Memory=688MB
F21:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: SEGMENT, count(*), CAST(SEGMENT AS BIGINT) * CAST(50 AS BIGINT)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
52:MERGING-EXCHANGE [UNPARTITIONED]
| order by: SEGMENT ASC, count(*) ASC
| limit: 100
| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=23 row-size=12B cardinality=100
| in pipelines: 28(GETNEXT)
|
F20:PLAN FRAGMENT [HASH(SEGMENT)] hosts=3 instances=3
Per-Host Resources: mem-estimate=10.12MB mem-reservation=1.94MB thread-reservation=1
28:TOP-N [LIMIT=100]
| order by: SEGMENT ASC, count(*) ASC
| mem-estimate=1.17KB mem-reservation=0B thread-reservation=0
| tuple-ids=23 row-size=12B cardinality=100
| in pipelines: 28(GETNEXT), 51(OPEN)
|
51:AGGREGATE [FINALIZE]
| output: count:merge(*)
| group by: SEGMENT
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 51(GETNEXT), 49(OPEN)
|
50:EXCHANGE [HASH(SEGMENT)]
| mem-estimate=121.98KB mem-reservation=0B thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 49(GETNEXT)
|
F19:PLAN FRAGMENT [HASH(c_customer_sk)] hosts=3 instances=3
Per-Host Resources: mem-estimate=20.19MB mem-reservation=3.94MB thread-reservation=1
27:AGGREGATE [STREAMING]
| output: count(*)
| group by: CAST((sum(ss_ext_sales_price) / CAST(50 AS DECIMAL(3,0))) AS INT)
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 49(GETNEXT)
|
49:AGGREGATE [FINALIZE]
| output: sum:merge(ss_ext_sales_price)
| group by: c_customer_sk
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 49(GETNEXT), 10(OPEN)
|
48:EXCHANGE [HASH(c_customer_sk)]
| mem-estimate=195.31KB mem-reservation=0B thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 10(GETNEXT)
|
F12:PLAN FRAGMENT [HASH(ss_sold_date_sk)] hosts=3 instances=3
Per-Host Resources: mem-estimate=14.54MB mem-reservation=4.94MB thread-reservation=1 runtime-filters-memory=1.00MB
26:AGGREGATE [STREAMING]
| output: sum(ss_ext_sales_price)
| group by: c_customer_sk
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 10(GETNEXT)
|
25:NESTED LOOP JOIN [INNER JOIN, BROADCAST]
| predicates: CAST(d_month_seq AS BIGINT) <= d_month_seq + 3
| mem-estimate=8B mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11,12,14,17 row-size=131B cardinality=18.94K
| in pipelines: 10(GETNEXT), 19(OPEN)
|
|--47:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=1
| | in pipelines: 19(GETNEXT)
| |
| F18:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1
| 19:CARDINALITY CHECK
| | limit: 1
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=1
| | in pipelines: 19(GETNEXT), 45(OPEN)
| |
| 46:EXCHANGE [UNPARTITIONED]
| | limit: 2
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=2
| | in pipelines: 45(GETNEXT)
| |
| F17:PLAN FRAGMENT [HASH(d_month_seq + 3)] hosts=1 instances=1
| Per-Host Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1
| 45:AGGREGATE [FINALIZE]
| | group by: d_month_seq + 3
| | limit: 2
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=2
| | in pipelines: 45(GETNEXT), 17(OPEN)
| |
| 44:EXCHANGE [HASH(d_month_seq + 3)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=108
| | in pipelines: 17(GETNEXT)
| |
| F16:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=58.00MB mem-reservation=2.25MB thread-reservation=2
| 18:AGGREGATE [STREAMING]
| | group by: CAST(d_month_seq AS BIGINT) + CAST(3 AS BIGINT)
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=108
| | in pipelines: 17(GETNEXT)
| |
| 17:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=16 row-size=12B cardinality=108
| in pipelines: 17(GETNEXT)
|
24:NESTED LOOP JOIN [INNER JOIN, BROADCAST]
| predicates: CAST(d_month_seq AS BIGINT) >= d_month_seq + 1
| mem-estimate=8B mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11,12,14 row-size=123B cardinality=18.94K
| in pipelines: 10(GETNEXT), 16(OPEN)
|
|--43:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=1
| | in pipelines: 16(GETNEXT)
| |
| F15:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1
| 16:CARDINALITY CHECK
| | limit: 1
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=1
| | in pipelines: 16(GETNEXT), 41(OPEN)
| |
| 42:EXCHANGE [UNPARTITIONED]
| | limit: 2
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=2
| | in pipelines: 41(GETNEXT)
| |
| F14:PLAN FRAGMENT [HASH(d_month_seq + 1)] hosts=1 instances=1
| Per-Host Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1
| 41:AGGREGATE [FINALIZE]
| | group by: d_month_seq + 1
| | limit: 2
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=2
| | in pipelines: 41(GETNEXT), 14(OPEN)
| |
| 40:EXCHANGE [HASH(d_month_seq + 1)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=108
| | in pipelines: 14(GETNEXT)
| |
| F13:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=58.00MB mem-reservation=2.25MB thread-reservation=2
| 15:AGGREGATE [STREAMING]
| | group by: CAST(d_month_seq AS BIGINT) + CAST(1 AS BIGINT)
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=108
| | in pipelines: 14(GETNEXT)
| |
| 14:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=13 row-size=12B cardinality=108
| in pipelines: 14(GETNEXT)
|
23:HASH JOIN [INNER JOIN, PARTITIONED]
| hash predicates: ss_sold_date_sk = d_date_sk
| fk/pk conjuncts: ss_sold_date_sk = d_date_sk
| runtime filters: RF000[bloom] <- d_date_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,7,10,11,12 row-size=115B cardinality=18.94K
| in pipelines: 10(GETNEXT), 13(OPEN)
|
|--39:EXCHANGE [HASH(d_date_sk)]
| | mem-estimate=582.70KB mem-reservation=0B thread-reservation=0
| | tuple-ids=12 row-size=8B cardinality=73.05K
| | in pipelines: 13(GETNEXT)
| |
| F11:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=2
| 13:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=12 row-size=8B cardinality=73.05K
| in pipelines: 13(GETNEXT)
|
38:EXCHANGE [HASH(ss_sold_date_sk)]
| mem-estimate=1.00MB mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11 row-size=107B cardinality=18.94K
| in pipelines: 10(GETNEXT)
|
F08:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=3 instances=3
Per-Host Resources: mem-estimate=36.92MB mem-reservation=19.19MB thread-reservation=1 runtime-filters-memory=4.00MB
22:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: ca_state = s_state, ca_county = s_county
| fk/pk conjuncts: none
| runtime filters: RF002[bloom] <- s_state, RF003[bloom] <- s_county
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,7,10,11 row-size=107B cardinality=18.94K
| in pipelines: 10(GETNEXT), 12(OPEN)
|
|--37:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=11 row-size=43B cardinality=12
| | in pipelines: 12(GETNEXT)
| |
| F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2
| 12:SCAN HDFS [tpcds_parquet.store, RANDOM]
| HDFS partitions=1/1 files=1 size=9.93KB
| stored statistics:
| table: rows=12 size=9.93KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=12
| mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=11 row-size=43B cardinality=12
| in pipelines: 12(GETNEXT)
|
21:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: c_current_addr_sk = ca_address_sk
| fk/pk conjuncts: c_current_addr_sk = ca_address_sk
| runtime filters: RF006[bloom] <- ca_address_sk
| mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0
| tuple-ids=9,7,10 row-size=64B cardinality=2.88M
| in pipelines: 10(GETNEXT), 11(OPEN)
|
|--36:EXCHANGE [BROADCAST]
| | mem-estimate=2.14MB mem-reservation=0B thread-reservation=0
| | tuple-ids=10 row-size=44B cardinality=50.00K
| | in pipelines: 11(GETNEXT)
| |
| F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=50.00MB mem-reservation=2.50MB thread-reservation=2 runtime-filters-memory=2.00MB
| 11:SCAN HDFS [tpcds_parquet.customer_address, RANDOM]
| HDFS partitions=1/1 files=1 size=1.16MB
| runtime filters: RF002[bloom] -> ca_state, RF003[bloom] -> ca_county
| stored statistics:
| table: rows=50.00K size=1.16MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=50.00K
| mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=10 row-size=44B cardinality=50.00K
| in pipelines: 11(GETNEXT)
|
20:HASH JOIN [INNER JOIN, PARTITIONED]
| hash predicates: ss_customer_sk = c_customer_sk
| fk/pk conjuncts: ss_customer_sk = c_customer_sk
| runtime filters: RF008[bloom] <- c_customer_sk
| mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0
| tuple-ids=9,7 row-size=20B cardinality=2.88M
| in pipelines: 10(GETNEXT), 33(OPEN)
|
|--35:EXCHANGE [HASH(c_customer_sk)]
| | mem-estimate=5.53MB mem-reservation=0B thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 33(GETNEXT)
| |
| F07:PLAN FRAGMENT [HASH(c_customer_sk,c_current_addr_sk)] hosts=3 instances=3
| Per-Host Resources: mem-estimate=22.53MB mem-reservation=17.00MB thread-reservation=1
| 33:AGGREGATE [FINALIZE]
| | group by: c_customer_sk, c_current_addr_sk
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 33(GETNEXT), 01(OPEN), 02(OPEN)
| |
| 32:EXCHANGE [HASH(c_customer_sk,c_current_addr_sk)]
| | mem-estimate=5.53MB mem-reservation=0B thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| F03:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Resources: mem-estimate=170.62MB mem-reservation=29.81MB thread-reservation=2 runtime-filters-memory=3.00MB
| 09:AGGREGATE [STREAMING]
| | group by: c_customer_sk, c_current_addr_sk
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| 08:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: customer_sk = c_customer_sk
| | fk/pk conjuncts: assumed fk/pk
| | runtime filters: RF010[bloom] <- c_customer_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4,5,6 row-size=82B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 05(OPEN)
| |
| |--31:EXCHANGE [BROADCAST]
| | | mem-estimate=793.25KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=6 row-size=8B cardinality=100.00K
| | | in pipelines: 05(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=33.00MB mem-reservation=2.00MB thread-reservation=2 runtime-filters-memory=1.00MB
| | 05:SCAN HDFS [tpcds_parquet.customer, RANDOM]
| | HDFS partitions=1/1 files=1 size=5.49MB
| | runtime filters: RF006[bloom] -> tpcds_parquet.customer.c_current_addr_sk
| | stored statistics:
| | table: rows=100.00K size=5.49MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=100.00K
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=6 row-size=8B cardinality=100.00K
| | in pipelines: 05(GETNEXT)
| |
| 07:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: sold_date_sk = d_date_sk
| | fk/pk conjuncts: assumed fk/pk
| | runtime filters: RF012[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4,5 row-size=74B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 04(OPEN)
| |
| |--30:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=5 row-size=12B cardinality=108
| | | in pipelines: 04(GETNEXT)
| | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| | 04:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=5 row-size=12B cardinality=108
| | in pipelines: 04(GETNEXT)
| |
| 06:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: item_sk = i_item_sk
| | fk/pk conjuncts: assumed fk/pk
| | runtime filters: RF014[bloom] <- i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4 row-size=62B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 03(OPEN)
| |
| |--29:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=4 row-size=46B cardinality=57
| | | in pipelines: 03(GETNEXT)
| | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=2
| | 03:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category = 'Women', i_class = 'maternity'
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category = 'Women', i_class = 'maternity'
| | parquet dictionary predicates: i_category = 'Women', i_class = 'maternity'
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=4 row-size=46B cardinality=57
| | in pipelines: 03(GETNEXT)
| |
| 00:UNION
| | pass-through-operands: all
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=16B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| |--02:SCAN HDFS [tpcds_parquet.web_sales, RANDOM]
| | HDFS partitions=1/1 files=2 size=45.09MB
| | runtime filters: RF010[bloom] -> tpcds_parquet.web_sales.ws_bill_customer_sk, RF012[bloom] -> tpcds_parquet.web_sales.ws_sold_date_sk, RF014[bloom] -> tpcds_parquet.web_sales.ws_item_sk
| | stored statistics:
| | table: rows=719.38K size=45.09MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=644.77K
| | mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| | tuple-ids=1 row-size=16B cardinality=719.38K
| | in pipelines: 02(GETNEXT)
| |
| 01:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF010[bloom] -> tpcds_parquet.catalog_sales.cs_bill_customer_sk, RF012[bloom] -> tpcds_parquet.catalog_sales.cs_sold_date_sk, RF014[bloom] -> tpcds_parquet.catalog_sales.cs_item_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=144.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=0 row-size=16B cardinality=1.44M
| in pipelines: 01(GETNEXT)
|
34:EXCHANGE [HASH(ss_customer_sk)]
| mem-estimate=10.05MB mem-reservation=0B thread-reservation=0
| tuple-ids=9 row-size=12B cardinality=2.88M
| in pipelines: 10(GETNEXT)
|
F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=34.00MB mem-reservation=3.00MB thread-reservation=2 runtime-filters-memory=2.00MB
10:SCAN HDFS [tpcds_parquet.store_sales, RANDOM]
HDFS partitions=1824/1824 files=1824 size=200.95MB
runtime filters: RF000[bloom] -> ss_sold_date_sk, RF008[bloom] -> ss_customer_sk
stored statistics:
table: rows=2.88M size=200.95MB
partitions: 1824/1824 rows=2.88M
columns: all
extrapolated-rows=disabled max-scan-range-rows=130.09K
mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
tuple-ids=9 row-size=12B cardinality=2.88M
in pipelines: 10(GETNEXT)
---- PARALLELPLANS
Max Per-Host Resource Reservation: Memory=123.27MB Threads=36
Per-Host Resource Estimates: Memory=463MB
F21:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: SEGMENT, count(*), CAST(SEGMENT AS BIGINT) * CAST(50 AS BIGINT)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
52:MERGING-EXCHANGE [UNPARTITIONED]
| order by: SEGMENT ASC, count(*) ASC
| limit: 100
| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=23 row-size=12B cardinality=100
| in pipelines: 28(GETNEXT)
|
F20:PLAN FRAGMENT [HASH(SEGMENT)] hosts=3 instances=6
Per-Instance Resources: mem-estimate=10.17MB mem-reservation=1.94MB thread-reservation=1
28:TOP-N [LIMIT=100]
| order by: SEGMENT ASC, count(*) ASC
| mem-estimate=1.17KB mem-reservation=0B thread-reservation=0
| tuple-ids=23 row-size=12B cardinality=100
| in pipelines: 28(GETNEXT), 51(OPEN)
|
51:AGGREGATE [FINALIZE]
| output: count:merge(*)
| group by: SEGMENT
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 51(GETNEXT), 49(OPEN)
|
50:EXCHANGE [HASH(SEGMENT)]
| mem-estimate=169.98KB mem-reservation=0B thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 49(GETNEXT)
|
F19:PLAN FRAGMENT [HASH(c_customer_sk)] hosts=3 instances=6
Per-Instance Resources: mem-estimate=20.26MB mem-reservation=3.94MB thread-reservation=1
27:AGGREGATE [STREAMING]
| output: count(*)
| group by: CAST((sum(ss_ext_sales_price) / CAST(50 AS DECIMAL(3,0))) AS INT)
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=22 row-size=12B cardinality=18.94K
| in pipelines: 49(GETNEXT)
|
49:AGGREGATE [FINALIZE]
| output: sum:merge(ss_ext_sales_price)
| group by: c_customer_sk
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 49(GETNEXT), 10(OPEN)
|
48:EXCHANGE [HASH(c_customer_sk)]
| mem-estimate=267.31KB mem-reservation=0B thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 10(GETNEXT)
|
F12:PLAN FRAGMENT [HASH(ss_sold_date_sk)] hosts=3 instances=6
Per-Instance Resources: mem-estimate=11.36MB mem-reservation=2.00MB thread-reservation=1
26:AGGREGATE [STREAMING]
| output: sum(ss_ext_sales_price)
| group by: c_customer_sk
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=19 row-size=20B cardinality=18.94K
| in pipelines: 10(GETNEXT)
|
25:NESTED LOOP JOIN [INNER JOIN, BROADCAST]
| join table id: 00
| predicates: CAST(d_month_seq AS BIGINT) <= d_month_seq + 3
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11,12,14,17 row-size=131B cardinality=18.94K
| in pipelines: 10(GETNEXT), 19(OPEN)
|
|--F22:PLAN FRAGMENT [HASH(ss_sold_date_sk)] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=16.01KB mem-reservation=0B thread-reservation=1
| JOIN BUILD
| | join-table-id=00 plan-id=01 cohort-id=01
| | mem-estimate=8B mem-reservation=0B thread-reservation=0
| |
| 47:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=1
| | in pipelines: 19(GETNEXT)
| |
| F18:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1
| 19:CARDINALITY CHECK
| | limit: 1
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=1
| | in pipelines: 19(GETNEXT), 45(OPEN)
| |
| 46:EXCHANGE [UNPARTITIONED]
| | limit: 2
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=2
| | in pipelines: 45(GETNEXT)
| |
| F17:PLAN FRAGMENT [HASH(d_month_seq + 3)] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1
| 45:AGGREGATE [FINALIZE]
| | group by: d_month_seq + 3
| | limit: 2
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=2
| | in pipelines: 45(GETNEXT), 17(OPEN)
| |
| 44:EXCHANGE [HASH(d_month_seq + 3)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=108
| | in pipelines: 17(GETNEXT)
| |
| F16:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=26.00MB mem-reservation=2.25MB thread-reservation=1
| 18:AGGREGATE [STREAMING]
| | group by: CAST(d_month_seq AS BIGINT) + CAST(3 AS BIGINT)
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17 row-size=8B cardinality=108
| | in pipelines: 17(GETNEXT)
| |
| 17:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0
| tuple-ids=16 row-size=12B cardinality=108
| in pipelines: 17(GETNEXT)
|
24:NESTED LOOP JOIN [INNER JOIN, BROADCAST]
| join table id: 01
| predicates: CAST(d_month_seq AS BIGINT) >= d_month_seq + 1
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11,12,14 row-size=123B cardinality=18.94K
| in pipelines: 10(GETNEXT), 16(OPEN)
|
|--F23:PLAN FRAGMENT [HASH(ss_sold_date_sk)] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=16.01KB mem-reservation=0B thread-reservation=1
| JOIN BUILD
| | join-table-id=01 plan-id=02 cohort-id=01
| | mem-estimate=8B mem-reservation=0B thread-reservation=0
| |
| 43:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=1
| | in pipelines: 16(GETNEXT)
| |
| F15:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1
| 16:CARDINALITY CHECK
| | limit: 1
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=1
| | in pipelines: 16(GETNEXT), 41(OPEN)
| |
| 42:EXCHANGE [UNPARTITIONED]
| | limit: 2
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=2
| | in pipelines: 41(GETNEXT)
| |
| F14:PLAN FRAGMENT [HASH(d_month_seq + 1)] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1
| 41:AGGREGATE [FINALIZE]
| | group by: d_month_seq + 1
| | limit: 2
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=2
| | in pipelines: 41(GETNEXT), 14(OPEN)
| |
| 40:EXCHANGE [HASH(d_month_seq + 1)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=108
| | in pipelines: 14(GETNEXT)
| |
| F13:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=26.00MB mem-reservation=2.25MB thread-reservation=1
| 15:AGGREGATE [STREAMING]
| | group by: CAST(d_month_seq AS BIGINT) + CAST(1 AS BIGINT)
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=8B cardinality=108
| | in pipelines: 14(GETNEXT)
| |
| 14:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0
| tuple-ids=13 row-size=12B cardinality=108
| in pipelines: 14(GETNEXT)
|
23:HASH JOIN [INNER JOIN, PARTITIONED]
| hash-table-id=02
| hash predicates: ss_sold_date_sk = d_date_sk
| fk/pk conjuncts: ss_sold_date_sk = d_date_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,7,10,11,12 row-size=115B cardinality=18.94K
| in pipelines: 10(GETNEXT), 13(OPEN)
|
|--F24:PLAN FRAGMENT [HASH(ss_sold_date_sk)] hosts=3 instances=6
| | Per-Instance Resources: mem-estimate=3.51MB mem-reservation=2.94MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=02 plan-id=03 cohort-id=01
| | build expressions: d_date_sk
| | runtime filters: RF000[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| |
| 39:EXCHANGE [HASH(d_date_sk)]
| | mem-estimate=582.70KB mem-reservation=0B thread-reservation=0
| | tuple-ids=12 row-size=8B cardinality=73.05K
| | in pipelines: 13(GETNEXT)
| |
| F11:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| 13:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0
| tuple-ids=12 row-size=8B cardinality=73.05K
| in pipelines: 13(GETNEXT)
|
38:EXCHANGE [HASH(ss_sold_date_sk)]
| mem-estimate=1.36MB mem-reservation=0B thread-reservation=0
| tuple-ids=9,7,10,11 row-size=107B cardinality=18.94K
| in pipelines: 10(GETNEXT)
|
F08:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=3 instances=6
Per-Instance Resources: mem-estimate=10.09MB mem-reservation=0B thread-reservation=1
22:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=03
| hash predicates: ca_state = s_state, ca_county = s_county
| fk/pk conjuncts: none
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,7,10,11 row-size=107B cardinality=18.94K
| in pipelines: 10(GETNEXT), 12(OPEN)
|
|--F25:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=5.89MB mem-reservation=5.88MB thread-reservation=1 runtime-filters-memory=2.00MB
| JOIN BUILD
| | join-table-id=03 plan-id=04 cohort-id=01
| | build expressions: s_state, s_county
| | runtime filters: RF002[bloom] <- s_state, RF003[bloom] <- s_county
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 37:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=11 row-size=43B cardinality=12
| | in pipelines: 12(GETNEXT)
| |
| F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=1
| 12:SCAN HDFS [tpcds_parquet.store, RANDOM]
| HDFS partitions=1/1 files=1 size=9.93KB
| stored statistics:
| table: rows=12 size=9.93KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=12
| mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0
| tuple-ids=11 row-size=43B cardinality=12
| in pipelines: 12(GETNEXT)
|
21:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=04
| hash predicates: c_current_addr_sk = ca_address_sk
| fk/pk conjuncts: c_current_addr_sk = ca_address_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=256.00KB thread-reservation=0
| tuple-ids=9,7,10 row-size=64B cardinality=2.88M
| in pipelines: 10(GETNEXT), 11(OPEN)
|
|--F26:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=12.64MB mem-reservation=10.50MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=04 plan-id=05 cohort-id=01
| | build expressions: ca_address_sk
| | runtime filters: RF006[bloom] <- ca_address_sk
| | mem-estimate=9.50MB mem-reservation=9.50MB spill-buffer=256.00KB thread-reservation=0
| |
| 36:EXCHANGE [BROADCAST]
| | mem-estimate=2.14MB mem-reservation=0B thread-reservation=0
| | tuple-ids=10 row-size=44B cardinality=50.00K
| | in pipelines: 11(GETNEXT)
| |
| F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Shared Resources: mem-estimate=2.00MB mem-reservation=2.00MB thread-reservation=0 runtime-filters-memory=2.00MB
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| 11:SCAN HDFS [tpcds_parquet.customer_address, RANDOM]
| HDFS partitions=1/1 files=1 size=1.16MB
| runtime filters: RF002[bloom] -> ca_state, RF003[bloom] -> ca_county
| stored statistics:
| table: rows=50.00K size=1.16MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=50.00K
| mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0
| tuple-ids=10 row-size=44B cardinality=50.00K
| in pipelines: 11(GETNEXT)
|
20:HASH JOIN [INNER JOIN, PARTITIONED]
| hash-table-id=05
| hash predicates: ss_customer_sk = c_customer_sk
| fk/pk conjuncts: ss_customer_sk = c_customer_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=256.00KB thread-reservation=0
| tuple-ids=9,7 row-size=20B cardinality=2.88M
| in pipelines: 10(GETNEXT), 33(OPEN)
|
|--F27:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=3 instances=6
| | Per-Instance Resources: mem-estimate=11.28MB mem-reservation=5.75MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=05 plan-id=06 cohort-id=01
| | build expressions: c_customer_sk
| | runtime filters: RF008[bloom] <- c_customer_sk
| | mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0
| |
| 35:EXCHANGE [HASH(c_customer_sk)]
| | mem-estimate=5.53MB mem-reservation=0B thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 33(GETNEXT)
| |
| F07:PLAN FRAGMENT [HASH(c_customer_sk,c_current_addr_sk)] hosts=3 instances=3
| Per-Instance Resources: mem-estimate=22.53MB mem-reservation=17.00MB thread-reservation=1
| 33:AGGREGATE [FINALIZE]
| | group by: c_customer_sk, c_current_addr_sk
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 33(GETNEXT), 01(OPEN), 02(OPEN)
| |
| 32:EXCHANGE [HASH(c_customer_sk,c_current_addr_sk)]
| | mem-estimate=5.53MB mem-reservation=0B thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| F03:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Shared Resources: mem-estimate=3.00MB mem-reservation=3.00MB thread-reservation=0 runtime-filters-memory=3.00MB
| Per-Instance Resources: mem-estimate=65.00MB mem-reservation=21.00MB thread-reservation=1
| 09:AGGREGATE [STREAMING]
| | group by: c_customer_sk, c_current_addr_sk
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=7 row-size=8B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| 08:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=06
| | hash predicates: customer_sk = c_customer_sk
| | fk/pk conjuncts: assumed fk/pk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4,5,6 row-size=82B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 05(OPEN)
| |
| |--F28:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | | Per-Instance Resources: mem-estimate=5.65MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=06 plan-id=07 cohort-id=02
| | | build expressions: c_customer_sk
| | | runtime filters: RF010[bloom] <- c_customer_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 31:EXCHANGE [BROADCAST]
| | | mem-estimate=793.25KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=6 row-size=8B cardinality=100.00K
| | | in pipelines: 05(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=1
| | 05:SCAN HDFS [tpcds_parquet.customer, RANDOM]
| | HDFS partitions=1/1 files=1 size=5.49MB
| | runtime filters: RF006[bloom] -> tpcds_parquet.customer.c_current_addr_sk
| | stored statistics:
| | table: rows=100.00K size=5.49MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=100.00K
| | mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0
| | tuple-ids=6 row-size=8B cardinality=100.00K
| | in pipelines: 05(GETNEXT)
| |
| 07:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=07
| | hash predicates: sold_date_sk = d_date_sk
| | fk/pk conjuncts: assumed fk/pk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4,5 row-size=74B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 04(OPEN)
| |
| |--F29:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | | Per-Instance Resources: mem-estimate=4.89MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=07 plan-id=08 cohort-id=02
| | | build expressions: d_date_sk
| | | runtime filters: RF012[bloom] <- d_date_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 30:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=5 row-size=12B cardinality=108
| | | in pipelines: 04(GETNEXT)
| | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| | 04:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(12 AS INT)
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0
| | tuple-ids=5 row-size=12B cardinality=108
| | in pipelines: 04(GETNEXT)
| |
| 06:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=08
| | hash predicates: item_sk = i_item_sk
| | fk/pk conjuncts: assumed fk/pk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=2,4 row-size=62B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT), 03(OPEN)
| |
| |--F30:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | | Per-Instance Resources: mem-estimate=4.89MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=08 plan-id=09 cohort-id=02
| | | build expressions: i_item_sk
| | | runtime filters: RF014[bloom] <- i_item_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 29:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=4 row-size=46B cardinality=57
| | | in pipelines: 03(GETNEXT)
| | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1
| | 03:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category = 'Women', i_class = 'maternity'
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category = 'Women', i_class = 'maternity'
| | parquet dictionary predicates: i_category = 'Women', i_class = 'maternity'
| | mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0
| | tuple-ids=4 row-size=46B cardinality=57
| | in pipelines: 03(GETNEXT)
| |
| 00:UNION
| | pass-through-operands: all
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=16B cardinality=2.16M
| | in pipelines: 01(GETNEXT), 02(GETNEXT)
| |
| |--02:SCAN HDFS [tpcds_parquet.web_sales, RANDOM]
| | HDFS partitions=1/1 files=2 size=45.09MB
| | runtime filters: RF010[bloom] -> tpcds_parquet.web_sales.ws_bill_customer_sk, RF012[bloom] -> tpcds_parquet.web_sales.ws_sold_date_sk, RF014[bloom] -> tpcds_parquet.web_sales.ws_item_sk
| | stored statistics:
| | table: rows=719.38K size=45.09MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=644.77K
| | mem-estimate=32.00MB mem-reservation=4.00MB thread-reservation=0
| | tuple-ids=1 row-size=16B cardinality=719.38K
| | in pipelines: 02(GETNEXT)
| |
| 01:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF010[bloom] -> tpcds_parquet.catalog_sales.cs_bill_customer_sk, RF012[bloom] -> tpcds_parquet.catalog_sales.cs_sold_date_sk, RF014[bloom] -> tpcds_parquet.catalog_sales.cs_item_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=48.00MB mem-reservation=4.00MB thread-reservation=0
| tuple-ids=0 row-size=16B cardinality=1.44M
| in pipelines: 01(GETNEXT)
|
34:EXCHANGE [HASH(ss_customer_sk)]
| mem-estimate=10.09MB mem-reservation=0B thread-reservation=0
| tuple-ids=9 row-size=12B cardinality=2.88M
| in pipelines: 10(GETNEXT)
|
F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=6
Per-Host Shared Resources: mem-estimate=2.00MB mem-reservation=2.00MB thread-reservation=0 runtime-filters-memory=2.00MB
Per-Instance Resources: mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=1
10:SCAN HDFS [tpcds_parquet.store_sales, RANDOM]
HDFS partitions=1824/1824 files=1824 size=200.95MB
runtime filters: RF000[bloom] -> ss_sold_date_sk, RF008[bloom] -> ss_customer_sk
stored statistics:
table: rows=2.88M size=200.95MB
partitions: 1824/1824 rows=2.88M
columns: all
extrapolated-rows=disabled max-scan-range-rows=130.09K
mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0
tuple-ids=9 row-size=12B cardinality=2.88M
in pipelines: 10(GETNEXT)
====