blob: 209d74579b53342daa1b408a070482aa0dffa12b [file] [log] [blame]
# TPCDS-Q57
WITH v1 AS
(SELECT i_category,
i_brand,
cc_name,
d_year,
d_moy,
sum(cs_sales_price) sum_sales,
avg(sum(cs_sales_price)) OVER (PARTITION BY i_category,
i_brand,
cc_name,
d_year) avg_monthly_sales,
rank() OVER (PARTITION BY i_category,
i_brand,
cc_name
ORDER BY d_year,
d_moy) rn
FROM item,
catalog_sales,
date_dim,
call_center
WHERE cs_item_sk = i_item_sk
AND cs_sold_date_sk = d_date_sk
AND cc_call_center_sk= cs_call_center_sk
AND (d_year = 1999
OR (d_year = 1999-1
AND d_moy =12)
OR (d_year = 1999+1
AND d_moy =1))
GROUP BY i_category,
i_brand,
cc_name,
d_year,
d_moy),
v2 AS
(SELECT v1.i_category,
v1.i_brand,
v1.cc_name,
v1.d_year,
v1.d_moy,
v1.avg_monthly_sales,
v1.sum_sales,
v1_lag.sum_sales psum,
v1_lead.sum_sales nsum
FROM v1,
v1 v1_lag,
v1 v1_lead
WHERE v1.i_category = v1_lag.i_category
AND v1.i_category = v1_lead.i_category
AND v1.i_brand = v1_lag.i_brand
AND v1.i_brand = v1_lead.i_brand
AND v1. cc_name = v1_lag. cc_name
AND v1. cc_name = v1_lead. cc_name
AND v1.rn = v1_lag.rn + 1
AND v1.rn = v1_lead.rn - 1)
SELECT *
FROM v2
WHERE d_year = 1999
AND avg_monthly_sales > 0
AND CASE
WHEN avg_monthly_sales > 0 THEN abs(sum_sales - avg_monthly_sales) / avg_monthly_sales
ELSE NULL
END > 0.1
ORDER BY sum_sales - avg_monthly_sales
LIMIT 100;
---- PLAN
Max Per-Host Resource Reservation: Memory=163.00MB Threads=13
Per-Host Resource Estimates: Memory=1002MB
F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=1002.44MB mem-reservation=163.00MB thread-reservation=13 runtime-filters-memory=9.00MB
PLAN-ROOT SINK
| output exprs: i_category, i_brand, cc_name, d_year, d_moy, avg_monthly_sales, sum_sales, psum, nsum
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
35:TOP-N [LIMIT=100]
| order by: sum_sales - avg_monthly_sales ASC
| mem-estimate=13.86KB mem-reservation=0B thread-reservation=0
| tuple-ids=25 row-size=142B cardinality=100
| in pipelines: 35(GETNEXT), 21(OPEN)
|
34:HASH JOIN [INNER JOIN]
| hash predicates: rank() = rank() - 1, i_category = i_category, cc_name = cc_name, i_brand = i_brand
| fk/pk conjuncts: none
| mem-estimate=36.65MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44,43,36,31,52,51 row-size=322B cardinality=136.11M
| in pipelines: 21(GETNEXT), 31(OPEN)
|
|--32:ANALYTIC
| | functions: rank()
| | partition by: i_category, i_brand, cc_name
| | order by: d_year ASC, d_moy ASC
| | window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=52,51 row-size=102B cardinality=342.81K
| | in pipelines: 31(GETNEXT)
| |
| 31:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=52 row-size=94B cardinality=342.81K
| | in pipelines: 31(GETNEXT), 30(OPEN)
| |
| 30:AGGREGATE [FINALIZE]
| | output: sum(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=34.00MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 30(GETNEXT), 24(OPEN)
| |
| 29:HASH JOIN [INNER JOIN]
| | hash predicates: cs_call_center_sk = cc_call_center_sk
| | fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| | runtime filters: RF012[bloom] <- cc_call_center_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18,16,19 row-size=114B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 26(OPEN)
| |
| |--26:SCAN HDFS [tpcds_parquet.call_center]
| | HDFS partitions=1/1 files=1 size=10.28KB
| | stored statistics:
| | table: rows=6 size=10.28KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=6
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| | tuple-ids=19 row-size=28B cardinality=6
| | in pipelines: 26(GETNEXT)
| |
| 28:HASH JOIN [INNER JOIN]
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | runtime filters: RF014[bloom] <- i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18,16 row-size=86B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 23(OPEN)
| |
| |--23:SCAN HDFS [tpcds_parquet.item]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=16 row-size=54B cardinality=18.00K
| | in pipelines: 23(GETNEXT)
| |
| 27:HASH JOIN [INNER JOIN]
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | runtime filters: RF016[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18 row-size=32B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 25(OPEN)
| |
| |--25:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=18 row-size=12B cardinality=434
| | in pipelines: 25(GETNEXT)
| |
| 24:SCAN HDFS [tpcds_parquet.catalog_sales]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF012[bloom] -> cs_call_center_sk, RF014[bloom] -> cs_item_sk, RF016[bloom] -> cs_sold_date_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=192.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=17 row-size=20B cardinality=1.44M
| in pipelines: 24(GETNEXT)
|
33:HASH JOIN [INNER JOIN]
| hash predicates: rank() + 1 = rank(), i_category = i_category, cc_name = cc_name, i_brand = i_brand
| fk/pk conjuncts: none
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=44,43,36,31 row-size=220B cardinality=274.35K
| in pipelines: 21(GETNEXT), 10(OPEN)
|
|--12:SELECT
| | predicates: d_year = CAST(1999 AS INT), avg(sum(cs_sales_price)) > CAST(0 AS DECIMAL(3,0)), CASE WHEN avg(sum(cs_sales_price)) > CAST(0 AS DECIMAL(3,0)) THEN abs(sum(cs_sales_price) - avg(sum(cs_sales_price))) / avg(sum(cs_sales_price)) ELSE NULL END > CAST(0.1 AS DECIMAL(1,1))
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=553
| | in pipelines: 10(GETNEXT)
| |
| 11:ANALYTIC
| | functions: avg(sum(cs_sales_price))
| | partition by: i_category, i_brand, cc_name, d_year
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=342.81K
| | in pipelines: 10(GETNEXT)
| |
| 10:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC NULLS LAST
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=36 row-size=102B cardinality=342.81K
| | in pipelines: 10(GETNEXT), 08(OPEN)
| |
| 09:ANALYTIC
| | functions: rank()
| | partition by: i_category, i_brand, cc_name
| | order by: d_year ASC, d_moy ASC
| | window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=34,33 row-size=102B cardinality=342.81K
| | in pipelines: 08(GETNEXT)
| |
| 08:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=34 row-size=94B cardinality=342.81K
| | in pipelines: 08(GETNEXT), 07(OPEN)
| |
| 07:AGGREGATE [FINALIZE]
| | output: sum(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=34.00MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 07(GETNEXT), 01(OPEN)
| |
| 06:HASH JOIN [INNER JOIN]
| | hash predicates: cs_call_center_sk = cc_call_center_sk
| | fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| | runtime filters: RF006[bloom] <- cc_call_center_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2,0,3 row-size=114B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 03(OPEN)
| |
| |--03:SCAN HDFS [tpcds_parquet.call_center]
| | HDFS partitions=1/1 files=1 size=10.28KB
| | stored statistics:
| | table: rows=6 size=10.28KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=6
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| | tuple-ids=3 row-size=28B cardinality=6
| | in pipelines: 03(GETNEXT)
| |
| 05:HASH JOIN [INNER JOIN]
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | runtime filters: RF008[bloom] <- i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2,0 row-size=86B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 00(OPEN)
| |
| |--00:SCAN HDFS [tpcds_parquet.item]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=0 row-size=54B cardinality=18.00K
| | in pipelines: 00(GETNEXT)
| |
| 04:HASH JOIN [INNER JOIN]
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | runtime filters: RF010[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2 row-size=32B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 02(OPEN)
| |
| |--02:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=2 row-size=12B cardinality=434
| | in pipelines: 02(GETNEXT)
| |
| 01:SCAN HDFS [tpcds_parquet.catalog_sales]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF006[bloom] -> cs_call_center_sk, RF008[bloom] -> cs_item_sk, RF010[bloom] -> cs_sold_date_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=192.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=1 row-size=20B cardinality=1.44M
| in pipelines: 01(GETNEXT)
|
22:ANALYTIC
| functions: rank()
| partition by: i_category, i_brand, cc_name
| order by: d_year ASC, d_moy ASC
| window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44,43 row-size=102B cardinality=342.81K
| in pipelines: 21(GETNEXT)
|
21:SORT
| order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44 row-size=94B cardinality=342.81K
| in pipelines: 21(GETNEXT), 20(OPEN)
|
20:AGGREGATE [FINALIZE]
| output: sum(cs_sales_price)
| group by: i_category, i_brand, cc_name, d_year, d_moy
| mem-estimate=34.00MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 20(GETNEXT), 14(OPEN)
|
19:HASH JOIN [INNER JOIN]
| hash predicates: cs_call_center_sk = cc_call_center_sk
| fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| runtime filters: RF000[bloom] <- cc_call_center_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10,8,11 row-size=114B cardinality=342.81K
| in pipelines: 14(GETNEXT), 16(OPEN)
|
|--16:SCAN HDFS [tpcds_parquet.call_center]
| HDFS partitions=1/1 files=1 size=10.28KB
| stored statistics:
| table: rows=6 size=10.28KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=6
| mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=11 row-size=28B cardinality=6
| in pipelines: 16(GETNEXT)
|
18:HASH JOIN [INNER JOIN]
| hash predicates: cs_item_sk = i_item_sk
| fk/pk conjuncts: cs_item_sk = i_item_sk
| runtime filters: RF002[bloom] <- i_item_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10,8 row-size=86B cardinality=342.81K
| in pipelines: 14(GETNEXT), 13(OPEN)
|
|--13:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=8 row-size=54B cardinality=18.00K
| in pipelines: 13(GETNEXT)
|
17:HASH JOIN [INNER JOIN]
| hash predicates: cs_sold_date_sk = d_date_sk
| fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| runtime filters: RF004[bloom] <- d_date_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10 row-size=32B cardinality=342.81K
| in pipelines: 14(GETNEXT), 15(OPEN)
|
|--15:SCAN HDFS [tpcds_parquet.date_dim]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=10 row-size=12B cardinality=434
| in pipelines: 15(GETNEXT)
|
14:SCAN HDFS [tpcds_parquet.catalog_sales]
HDFS partitions=1/1 files=3 size=96.62MB
runtime filters: RF000[bloom] -> cs_call_center_sk, RF002[bloom] -> cs_item_sk, RF004[bloom] -> cs_sold_date_sk
stored statistics:
table: rows=1.44M size=96.62MB
columns: all
extrapolated-rows=disabled max-scan-range-rows=650.14K
mem-estimate=192.00MB mem-reservation=4.00MB thread-reservation=1
tuple-ids=9 row-size=20B cardinality=1.44M
in pipelines: 14(GETNEXT)
---- DISTRIBUTEDPLAN
Max Per-Host Resource Reservation: Memory=213.67MB Threads=29
Per-Host Resource Estimates: Memory=1.16GB
F16:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=47.37KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: i_category, i_brand, cc_name, d_year, d_moy, avg_monthly_sales, sum_sales, psum, nsum
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
54:MERGING-EXCHANGE [UNPARTITIONED]
| order by: sum_sales - avg_monthly_sales ASC
| limit: 100
| mem-estimate=47.37KB mem-reservation=0B thread-reservation=0
| tuple-ids=25 row-size=142B cardinality=100
| in pipelines: 35(GETNEXT)
|
F15:PLAN FRAGMENT [HASH(rank(),i_category,cc_name,i_brand)] hosts=3 instances=3
Per-Host Resources: mem-estimate=38.01MB mem-reservation=17.00MB thread-reservation=1
35:TOP-N [LIMIT=100]
| order by: sum_sales - avg_monthly_sales ASC
| mem-estimate=13.86KB mem-reservation=0B thread-reservation=0
| tuple-ids=25 row-size=142B cardinality=100
| in pipelines: 35(GETNEXT), 21(OPEN)
|
34:HASH JOIN [INNER JOIN, PARTITIONED]
| hash predicates: rank() = rank() - 1, i_category = i_category, cc_name = cc_name, i_brand = i_brand
| fk/pk conjuncts: none
| mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| tuple-ids=44,43,36,31,52,51 row-size=322B cardinality=136.11M
| in pipelines: 21(GETNEXT), 31(OPEN)
|
|--53:EXCHANGE [HASH(rank() - 1,i_category,cc_name,i_brand)]
| | mem-estimate=10.32MB mem-reservation=0B thread-reservation=0
| | tuple-ids=52,51 row-size=102B cardinality=342.81K
| | in pipelines: 31(GETNEXT)
| |
| F14:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
| Per-Host Resources: mem-estimate=33.00MB mem-reservation=33.00MB thread-reservation=1
| 32:ANALYTIC
| | functions: rank()
| | partition by: i_category, i_brand, cc_name
| | order by: d_year ASC, d_moy ASC
| | window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=52,51 row-size=102B cardinality=342.81K
| | in pipelines: 31(GETNEXT)
| |
| 31:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=52 row-size=94B cardinality=342.81K
| | in pipelines: 31(GETNEXT), 51(OPEN)
| |
| 51:AGGREGATE [FINALIZE]
| | output: sum:merge(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 51(GETNEXT), 24(OPEN)
| |
| 50:EXCHANGE [HASH(i_category,i_brand,cc_name)]
| | mem-estimate=10.29MB mem-reservation=0B thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 24(GETNEXT)
| |
| F10:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Resources: mem-estimate=218.83MB mem-reservation=29.81MB thread-reservation=2 runtime-filters-memory=3.00MB
| 30:AGGREGATE [STREAMING]
| | output: sum(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 24(GETNEXT)
| |
| 29:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_call_center_sk = cc_call_center_sk
| | fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| | runtime filters: RF012[bloom] <- cc_call_center_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18,16,19 row-size=114B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 26(OPEN)
| |
| |--49:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=19 row-size=28B cardinality=6
| | | in pipelines: 26(GETNEXT)
| | |
| | F13:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2
| | 26:SCAN HDFS [tpcds_parquet.call_center, RANDOM]
| | HDFS partitions=1/1 files=1 size=10.28KB
| | stored statistics:
| | table: rows=6 size=10.28KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=6
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| | tuple-ids=19 row-size=28B cardinality=6
| | in pipelines: 26(GETNEXT)
| |
| 28:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | runtime filters: RF014[bloom] <- i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18,16 row-size=86B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 23(OPEN)
| |
| |--48:EXCHANGE [BROADCAST]
| | | mem-estimate=1008.92KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=16 row-size=54B cardinality=18.00K
| | | in pipelines: 23(GETNEXT)
| | |
| | F12:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=2
| | 23:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=16 row-size=54B cardinality=18.00K
| | in pipelines: 23(GETNEXT)
| |
| 27:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | runtime filters: RF016[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18 row-size=32B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 25(OPEN)
| |
| |--47:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=18 row-size=12B cardinality=434
| | | in pipelines: 25(GETNEXT)
| | |
| | F11:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| | 25:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=18 row-size=12B cardinality=434
| | in pipelines: 25(GETNEXT)
| |
| 24:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF012[bloom] -> cs_call_center_sk, RF014[bloom] -> cs_item_sk, RF016[bloom] -> cs_sold_date_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=192.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=17 row-size=20B cardinality=1.44M
| in pipelines: 24(GETNEXT)
|
52:EXCHANGE [HASH(rank(),i_category,cc_name,i_brand)]
| mem-estimate=10.69MB mem-reservation=0B thread-reservation=0
| tuple-ids=44,43,36,31 row-size=220B cardinality=274.35K
| in pipelines: 21(GETNEXT)
|
F04:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
Per-Host Resources: mem-estimate=35.20MB mem-reservation=34.94MB thread-reservation=1
33:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: rank() + 1 = rank(), i_category = i_category, cc_name = cc_name, i_brand = i_brand
| fk/pk conjuncts: none
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=44,43,36,31 row-size=220B cardinality=274.35K
| in pipelines: 21(GETNEXT), 10(OPEN)
|
|--46:EXCHANGE [BROADCAST]
| | mem-estimate=267.70KB mem-reservation=0B thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=553
| | in pipelines: 10(GETNEXT)
| |
| F09:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
| Per-Host Resources: mem-estimate=37.00MB mem-reservation=37.00MB thread-reservation=1
| 12:SELECT
| | predicates: d_year = CAST(1999 AS INT), avg(sum(cs_sales_price)) > CAST(0 AS DECIMAL(3,0)), CASE WHEN avg(sum(cs_sales_price)) > CAST(0 AS DECIMAL(3,0)) THEN abs(sum(cs_sales_price) - avg(sum(cs_sales_price))) / avg(sum(cs_sales_price)) ELSE NULL END > CAST(0.1 AS DECIMAL(1,1))
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=553
| | in pipelines: 10(GETNEXT)
| |
| 11:ANALYTIC
| | functions: avg(sum(cs_sales_price))
| | partition by: i_category, i_brand, cc_name, d_year
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=342.81K
| | in pipelines: 10(GETNEXT)
| |
| 10:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC NULLS LAST
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=36 row-size=102B cardinality=342.81K
| | in pipelines: 10(GETNEXT), 08(OPEN)
| |
| 09:ANALYTIC
| | functions: rank()
| | partition by: i_category, i_brand, cc_name
| | order by: d_year ASC, d_moy ASC
| | window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=34,33 row-size=102B cardinality=342.81K
| | in pipelines: 08(GETNEXT)
| |
| 08:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=34 row-size=94B cardinality=342.81K
| | in pipelines: 08(GETNEXT), 45(OPEN)
| |
| 45:AGGREGATE [FINALIZE]
| | output: sum:merge(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 45(GETNEXT), 01(OPEN)
| |
| 44:EXCHANGE [HASH(i_category,i_brand,cc_name)]
| | mem-estimate=10.29MB mem-reservation=0B thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 01(GETNEXT)
| |
| F05:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Resources: mem-estimate=218.83MB mem-reservation=29.81MB thread-reservation=2 runtime-filters-memory=3.00MB
| 07:AGGREGATE [STREAMING]
| | output: sum(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 01(GETNEXT)
| |
| 06:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_call_center_sk = cc_call_center_sk
| | fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| | runtime filters: RF006[bloom] <- cc_call_center_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2,0,3 row-size=114B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 03(OPEN)
| |
| |--43:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=3 row-size=28B cardinality=6
| | | in pipelines: 03(GETNEXT)
| | |
| | F08:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2
| | 03:SCAN HDFS [tpcds_parquet.call_center, RANDOM]
| | HDFS partitions=1/1 files=1 size=10.28KB
| | stored statistics:
| | table: rows=6 size=10.28KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=6
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| | tuple-ids=3 row-size=28B cardinality=6
| | in pipelines: 03(GETNEXT)
| |
| 05:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | runtime filters: RF008[bloom] <- i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2,0 row-size=86B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 00(OPEN)
| |
| |--42:EXCHANGE [BROADCAST]
| | | mem-estimate=1008.92KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=0 row-size=54B cardinality=18.00K
| | | in pipelines: 00(GETNEXT)
| | |
| | F07:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=2
| | 00:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=0 row-size=54B cardinality=18.00K
| | in pipelines: 00(GETNEXT)
| |
| 04:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | runtime filters: RF010[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2 row-size=32B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 02(OPEN)
| |
| |--41:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=2 row-size=12B cardinality=434
| | | in pipelines: 02(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| | 02:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=2 row-size=12B cardinality=434
| | in pipelines: 02(GETNEXT)
| |
| 01:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF006[bloom] -> cs_call_center_sk, RF008[bloom] -> cs_item_sk, RF010[bloom] -> cs_sold_date_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=192.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=1 row-size=20B cardinality=1.44M
| in pipelines: 01(GETNEXT)
|
22:ANALYTIC
| functions: rank()
| partition by: i_category, i_brand, cc_name
| order by: d_year ASC, d_moy ASC
| window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44,43 row-size=102B cardinality=342.81K
| in pipelines: 21(GETNEXT)
|
21:SORT
| order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44 row-size=94B cardinality=342.81K
| in pipelines: 21(GETNEXT), 40(OPEN)
|
40:AGGREGATE [FINALIZE]
| output: sum:merge(cs_sales_price)
| group by: i_category, i_brand, cc_name, d_year, d_moy
| mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 40(GETNEXT), 14(OPEN)
|
39:EXCHANGE [HASH(i_category,i_brand,cc_name)]
| mem-estimate=10.29MB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 14(GETNEXT)
|
F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=218.83MB mem-reservation=29.81MB thread-reservation=2 runtime-filters-memory=3.00MB
20:AGGREGATE [STREAMING]
| output: sum(cs_sales_price)
| group by: i_category, i_brand, cc_name, d_year, d_moy
| mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 14(GETNEXT)
|
19:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: cs_call_center_sk = cc_call_center_sk
| fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| runtime filters: RF000[bloom] <- cc_call_center_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10,8,11 row-size=114B cardinality=342.81K
| in pipelines: 14(GETNEXT), 16(OPEN)
|
|--38:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=11 row-size=28B cardinality=6
| | in pipelines: 16(GETNEXT)
| |
| F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2
| 16:SCAN HDFS [tpcds_parquet.call_center, RANDOM]
| HDFS partitions=1/1 files=1 size=10.28KB
| stored statistics:
| table: rows=6 size=10.28KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=6
| mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=11 row-size=28B cardinality=6
| in pipelines: 16(GETNEXT)
|
18:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: cs_item_sk = i_item_sk
| fk/pk conjuncts: cs_item_sk = i_item_sk
| runtime filters: RF002[bloom] <- i_item_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10,8 row-size=86B cardinality=342.81K
| in pipelines: 14(GETNEXT), 13(OPEN)
|
|--37:EXCHANGE [BROADCAST]
| | mem-estimate=1008.92KB mem-reservation=0B thread-reservation=0
| | tuple-ids=8 row-size=54B cardinality=18.00K
| | in pipelines: 13(GETNEXT)
| |
| F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=2
| 13:SCAN HDFS [tpcds_parquet.item, RANDOM]
| HDFS partitions=1/1 files=1 size=1.73MB
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=8 row-size=54B cardinality=18.00K
| in pipelines: 13(GETNEXT)
|
17:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: cs_sold_date_sk = d_date_sk
| fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| runtime filters: RF004[bloom] <- d_date_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10 row-size=32B cardinality=342.81K
| in pipelines: 14(GETNEXT), 15(OPEN)
|
|--36:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=10 row-size=12B cardinality=434
| | in pipelines: 15(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| 15:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=10 row-size=12B cardinality=434
| in pipelines: 15(GETNEXT)
|
14:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
HDFS partitions=1/1 files=3 size=96.62MB
runtime filters: RF000[bloom] -> cs_call_center_sk, RF002[bloom] -> cs_item_sk, RF004[bloom] -> cs_sold_date_sk
stored statistics:
table: rows=1.44M size=96.62MB
columns: all
extrapolated-rows=disabled max-scan-range-rows=650.14K
mem-estimate=192.00MB mem-reservation=4.00MB thread-reservation=1
tuple-ids=9 row-size=20B cardinality=1.44M
in pipelines: 14(GETNEXT)
---- PARALLELPLANS
Max Per-Host Resource Reservation: Memory=242.05MB Threads=28
Per-Host Resource Estimates: Memory=540MB
F16:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=47.37KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: i_category, i_brand, cc_name, d_year, d_moy, avg_monthly_sales, sum_sales, psum, nsum
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
54:MERGING-EXCHANGE [UNPARTITIONED]
| order by: sum_sales - avg_monthly_sales ASC
| limit: 100
| mem-estimate=47.37KB mem-reservation=0B thread-reservation=0
| tuple-ids=25 row-size=142B cardinality=100
| in pipelines: 35(GETNEXT)
|
F15:PLAN FRAGMENT [HASH(rank(),i_category,cc_name,i_brand)] hosts=3 instances=3
Per-Instance Resources: mem-estimate=10.70MB mem-reservation=0B thread-reservation=1
35:TOP-N [LIMIT=100]
| order by: sum_sales - avg_monthly_sales ASC
| mem-estimate=13.86KB mem-reservation=0B thread-reservation=0
| tuple-ids=25 row-size=142B cardinality=100
| in pipelines: 35(GETNEXT), 21(OPEN)
|
34:HASH JOIN [INNER JOIN, PARTITIONED]
| hash-table-id=00
| hash predicates: rank() = rank() - 1, i_category = i_category, cc_name = cc_name, i_brand = i_brand
| fk/pk conjuncts: none
| mem-estimate=0B mem-reservation=0B spill-buffer=1.00MB thread-reservation=0
| tuple-ids=44,43,36,31,52,51 row-size=322B cardinality=136.11M
| in pipelines: 21(GETNEXT), 31(OPEN)
|
|--F17:PLAN FRAGMENT [HASH(rank(),i_category,cc_name,i_brand)] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=27.32MB mem-reservation=17.00MB thread-reservation=1
| JOIN BUILD
| | join-table-id=00 plan-id=01 cohort-id=01
| | build expressions: rank() - 1, i_category, cc_name, i_brand
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| |
| 53:EXCHANGE [HASH(rank() - 1,i_category,cc_name,i_brand)]
| | mem-estimate=10.32MB mem-reservation=0B thread-reservation=0
| | tuple-ids=52,51 row-size=102B cardinality=342.81K
| | in pipelines: 31(GETNEXT)
| |
| F14:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
| Per-Instance Resources: mem-estimate=33.00MB mem-reservation=33.00MB thread-reservation=1
| 32:ANALYTIC
| | functions: rank()
| | partition by: i_category, i_brand, cc_name
| | order by: d_year ASC, d_moy ASC
| | window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=52,51 row-size=102B cardinality=342.81K
| | in pipelines: 31(GETNEXT)
| |
| 31:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=52 row-size=94B cardinality=342.81K
| | in pipelines: 31(GETNEXT), 51(OPEN)
| |
| 51:AGGREGATE [FINALIZE]
| | output: sum:merge(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 51(GETNEXT), 24(OPEN)
| |
| 50:EXCHANGE [HASH(i_category,i_brand,cc_name)]
| | mem-estimate=10.29MB mem-reservation=0B thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 24(GETNEXT)
| |
| F10: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
| 30:AGGREGATE [STREAMING]
| | output: sum(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=20 row-size=94B cardinality=342.81K
| | in pipelines: 24(GETNEXT)
| |
| 29:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=01
| | hash predicates: cs_call_center_sk = cc_call_center_sk
| | fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18,16,19 row-size=114B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 26(OPEN)
| |
| |--F18: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=01 plan-id=02 cohort-id=02
| | | build expressions: cc_call_center_sk
| | | runtime filters: RF012[bloom] <- cc_call_center_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 49:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=19 row-size=28B cardinality=6
| | | in pipelines: 26(GETNEXT)
| | |
| | F13:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=1
| | 26:SCAN HDFS [tpcds_parquet.call_center, RANDOM]
| | HDFS partitions=1/1 files=1 size=10.28KB
| | stored statistics:
| | table: rows=6 size=10.28KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=6
| | mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0
| | tuple-ids=19 row-size=28B cardinality=6
| | in pipelines: 26(GETNEXT)
| |
| 28:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=02
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18,16 row-size=86B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 23(OPEN)
| |
| |--F19:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | | Per-Instance Resources: mem-estimate=5.86MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=02 plan-id=03 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
| | |
| | 48:EXCHANGE [BROADCAST]
| | | mem-estimate=1008.92KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=16 row-size=54B cardinality=18.00K
| | | in pipelines: 23(GETNEXT)
| | |
| | F12:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1
| | 23:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0
| | tuple-ids=16 row-size=54B cardinality=18.00K
| | in pipelines: 23(GETNEXT)
| |
| 27:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=03
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=17,18 row-size=32B cardinality=342.81K
| | in pipelines: 24(GETNEXT), 25(OPEN)
| |
| |--F20: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=03 plan-id=04 cohort-id=02
| | | build expressions: d_date_sk
| | | runtime filters: RF016[bloom] <- d_date_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 47:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=18 row-size=12B cardinality=434
| | | in pipelines: 25(GETNEXT)
| | |
| | F11:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| | 25:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| | 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=18 row-size=12B cardinality=434
| | in pipelines: 25(GETNEXT)
| |
| 24:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF012[bloom] -> cs_call_center_sk, RF014[bloom] -> cs_item_sk, RF016[bloom] -> cs_sold_date_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=17 row-size=20B cardinality=1.44M
| in pipelines: 24(GETNEXT)
|
52:EXCHANGE [HASH(rank(),i_category,cc_name,i_brand)]
| mem-estimate=10.69MB mem-reservation=0B thread-reservation=0
| tuple-ids=44,43,36,31 row-size=220B cardinality=274.35K
| in pipelines: 21(GETNEXT)
|
F04:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
Per-Instance Resources: mem-estimate=33.00MB mem-reservation=33.00MB thread-reservation=1
33:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=04
| hash predicates: rank() + 1 = rank(), i_category = i_category, cc_name = cc_name, i_brand = i_brand
| fk/pk conjuncts: none
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=44,43,36,31 row-size=220B cardinality=274.35K
| in pipelines: 21(GETNEXT), 10(OPEN)
|
|--F21:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=4.14MB mem-reservation=3.88MB thread-reservation=1
| JOIN BUILD
| | join-table-id=04 plan-id=05 cohort-id=01
| | build expressions: rank(), i_category, cc_name, i_brand
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 46:EXCHANGE [BROADCAST]
| | mem-estimate=267.70KB mem-reservation=0B thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=553
| | in pipelines: 10(GETNEXT)
| |
| F09:PLAN FRAGMENT [HASH(i_category,i_brand,cc_name)] hosts=3 instances=3
| Per-Instance Resources: mem-estimate=37.00MB mem-reservation=37.00MB thread-reservation=1
| 12:SELECT
| | predicates: d_year = CAST(1999 AS INT), avg(sum(cs_sales_price)) > CAST(0 AS DECIMAL(3,0)), CASE WHEN avg(sum(cs_sales_price)) > CAST(0 AS DECIMAL(3,0)) THEN abs(sum(cs_sales_price) - avg(sum(cs_sales_price))) / avg(sum(cs_sales_price)) ELSE NULL END > CAST(0.1 AS DECIMAL(1,1))
| | mem-estimate=0B mem-reservation=0B thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=553
| | in pipelines: 10(GETNEXT)
| |
| 11:ANALYTIC
| | functions: avg(sum(cs_sales_price))
| | partition by: i_category, i_brand, cc_name, d_year
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=36,31 row-size=118B cardinality=342.81K
| | in pipelines: 10(GETNEXT)
| |
| 10:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC NULLS LAST
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=36 row-size=102B cardinality=342.81K
| | in pipelines: 10(GETNEXT), 08(OPEN)
| |
| 09:ANALYTIC
| | functions: rank()
| | partition by: i_category, i_brand, cc_name
| | order by: d_year ASC, d_moy ASC
| | window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=34,33 row-size=102B cardinality=342.81K
| | in pipelines: 08(GETNEXT)
| |
| 08:SORT
| | order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| | tuple-ids=34 row-size=94B cardinality=342.81K
| | in pipelines: 08(GETNEXT), 45(OPEN)
| |
| 45:AGGREGATE [FINALIZE]
| | output: sum:merge(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 45(GETNEXT), 01(OPEN)
| |
| 44:EXCHANGE [HASH(i_category,i_brand,cc_name)]
| | mem-estimate=10.29MB mem-reservation=0B thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 01(GETNEXT)
| |
| F05: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
| 07:AGGREGATE [STREAMING]
| | output: sum(cs_sales_price)
| | group by: i_category, i_brand, cc_name, d_year, d_moy
| | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| | tuple-ids=4 row-size=94B cardinality=342.81K
| | in pipelines: 01(GETNEXT)
| |
| 06:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=05
| | hash predicates: cs_call_center_sk = cc_call_center_sk
| | fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2,0,3 row-size=114B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 03(OPEN)
| |
| |--F22: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=05 plan-id=06 cohort-id=03
| | | build expressions: cc_call_center_sk
| | | runtime filters: RF006[bloom] <- cc_call_center_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 43:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=3 row-size=28B cardinality=6
| | | in pipelines: 03(GETNEXT)
| | |
| | F08:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=1
| | 03:SCAN HDFS [tpcds_parquet.call_center, RANDOM]
| | HDFS partitions=1/1 files=1 size=10.28KB
| | stored statistics:
| | table: rows=6 size=10.28KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=6
| | mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0
| | tuple-ids=3 row-size=28B cardinality=6
| | in pipelines: 03(GETNEXT)
| |
| 05:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=06
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2,0 row-size=86B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 00(OPEN)
| |
| |--F23:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | | Per-Instance Resources: mem-estimate=5.86MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=06 plan-id=07 cohort-id=03
| | | build expressions: i_item_sk
| | | runtime filters: RF008[bloom] <- i_item_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 42:EXCHANGE [BROADCAST]
| | | mem-estimate=1008.92KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=0 row-size=54B cardinality=18.00K
| | | in pipelines: 00(GETNEXT)
| | |
| | F07:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1
| | 00:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0
| | tuple-ids=0 row-size=54B cardinality=18.00K
| | in pipelines: 00(GETNEXT)
| |
| 04:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=07
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=1,2 row-size=32B cardinality=342.81K
| | in pipelines: 01(GETNEXT), 02(OPEN)
| |
| |--F24: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=03
| | | build expressions: d_date_sk
| | | runtime filters: RF010[bloom] <- d_date_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 41:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=2 row-size=12B cardinality=434
| | | in pipelines: 02(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| | 02:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| | 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=2 row-size=12B cardinality=434
| | in pipelines: 02(GETNEXT)
| |
| 01:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF006[bloom] -> cs_call_center_sk, RF008[bloom] -> cs_item_sk, RF010[bloom] -> cs_sold_date_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=1 row-size=20B cardinality=1.44M
| in pipelines: 01(GETNEXT)
|
22:ANALYTIC
| functions: rank()
| partition by: i_category, i_brand, cc_name
| order by: d_year ASC, d_moy ASC
| window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
| mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44,43 row-size=102B cardinality=342.81K
| in pipelines: 21(GETNEXT)
|
21:SORT
| order by: i_category ASC NULLS LAST, i_brand ASC NULLS LAST, cc_name ASC NULLS LAST, d_year ASC, d_moy ASC
| mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0
| tuple-ids=44 row-size=94B cardinality=342.81K
| in pipelines: 21(GETNEXT), 40(OPEN)
|
40:AGGREGATE [FINALIZE]
| output: sum:merge(cs_sales_price)
| group by: i_category, i_brand, cc_name, d_year, d_moy
| mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 40(GETNEXT), 14(OPEN)
|
39:EXCHANGE [HASH(i_category,i_brand,cc_name)]
| mem-estimate=10.29MB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 14(GETNEXT)
|
F00: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
20:AGGREGATE [STREAMING]
| output: sum(cs_sales_price)
| group by: i_category, i_brand, cc_name, d_year, d_moy
| mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| tuple-ids=12 row-size=94B cardinality=342.81K
| in pipelines: 14(GETNEXT)
|
19:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=08
| hash predicates: cs_call_center_sk = cc_call_center_sk
| fk/pk conjuncts: cs_call_center_sk = cc_call_center_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10,8,11 row-size=114B cardinality=342.81K
| in pipelines: 14(GETNEXT), 16(OPEN)
|
|--F25: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=01
| | build expressions: cc_call_center_sk
| | runtime filters: RF000[bloom] <- cc_call_center_sk
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 38:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=11 row-size=28B cardinality=6
| | in pipelines: 16(GETNEXT)
| |
| F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=1
| 16:SCAN HDFS [tpcds_parquet.call_center, RANDOM]
| HDFS partitions=1/1 files=1 size=10.28KB
| stored statistics:
| table: rows=6 size=10.28KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=6
| mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0
| tuple-ids=11 row-size=28B cardinality=6
| in pipelines: 16(GETNEXT)
|
18:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=09
| hash predicates: cs_item_sk = i_item_sk
| fk/pk conjuncts: cs_item_sk = i_item_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10,8 row-size=86B cardinality=342.81K
| in pipelines: 14(GETNEXT), 13(OPEN)
|
|--F26:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=5.86MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=09 plan-id=10 cohort-id=01
| | build expressions: i_item_sk
| | runtime filters: RF002[bloom] <- i_item_sk
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 37:EXCHANGE [BROADCAST]
| | mem-estimate=1008.92KB mem-reservation=0B thread-reservation=0
| | tuple-ids=8 row-size=54B cardinality=18.00K
| | in pipelines: 13(GETNEXT)
| |
| F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1
| 13:SCAN HDFS [tpcds_parquet.item, RANDOM]
| HDFS partitions=1/1 files=1 size=1.73MB
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0
| tuple-ids=8 row-size=54B cardinality=18.00K
| in pipelines: 13(GETNEXT)
|
17:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=10
| hash predicates: cs_sold_date_sk = d_date_sk
| fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=9,10 row-size=32B cardinality=342.81K
| in pipelines: 14(GETNEXT), 15(OPEN)
|
|--F27: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=10 plan-id=11 cohort-id=01
| | build expressions: d_date_sk
| | runtime filters: RF004[bloom] <- d_date_sk
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 36:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=10 row-size=12B cardinality=434
| | in pipelines: 15(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| 15:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: (d_year = CAST(1999 AS INT) OR (d_year = CAST(1998 AS INT) AND d_moy = CAST(12 AS INT)) OR (d_year = CAST(2000 AS INT) AND d_moy = CAST(1 AS INT)))
| 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=10 row-size=12B cardinality=434
| in pipelines: 15(GETNEXT)
|
14:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
HDFS partitions=1/1 files=3 size=96.62MB
runtime filters: RF000[bloom] -> cs_call_center_sk, RF002[bloom] -> cs_item_sk, RF004[bloom] -> cs_sold_date_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=9 row-size=20B cardinality=1.44M
in pipelines: 14(GETNEXT)
====