blob: 4176d4e4f73cbec6c217b971edceb465c4b803c6 [file] [log] [blame]
# TPCDS-Q76
SELECT channel,
col_name,
d_year,
d_qoy,
i_category,
COUNT(*) sales_cnt,
SUM(ext_sales_price) sales_amt
FROM
( SELECT 'store' AS channel,
'ss_store_sk' col_name,
d_year,
d_qoy,
i_category,
ss_ext_sales_price ext_sales_price
FROM store_sales,
item,
date_dim
WHERE ss_store_sk IS NULL
AND ss_sold_date_sk=d_date_sk
AND ss_item_sk=i_item_sk
UNION ALL SELECT 'web' AS channel,
'ws_ship_customer_sk' col_name,
d_year,
d_qoy,
i_category,
ws_ext_sales_price ext_sales_price
FROM web_sales,
item,
date_dim
WHERE ws_ship_customer_sk IS NULL
AND ws_sold_date_sk=d_date_sk
AND ws_item_sk=i_item_sk
UNION ALL SELECT 'catalog' AS channel,
'cs_ship_addr_sk' col_name,
d_year,
d_qoy,
i_category,
cs_ext_sales_price ext_sales_price
FROM catalog_sales,
item,
date_dim
WHERE cs_ship_addr_sk IS NULL
AND cs_sold_date_sk=d_date_sk
AND cs_item_sk=i_item_sk) foo
GROUP BY channel,
col_name,
d_year,
d_qoy,
i_category
ORDER BY channel,
col_name,
d_year,
d_qoy,
i_category
LIMIT 100;
---- PLAN
Max Per-Host Resource Reservation: Memory=33.69MB Threads=4
Per-Host Resource Estimates: Memory=297MB
F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=296.94MB mem-reservation=33.69MB thread-reservation=4 runtime-filters-memory=6.00MB
PLAN-ROOT SINK
| output exprs: channel, col_name, d_year, d_qoy, i_category, count(*), sum(ext_sales_price)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
17:TOP-N [LIMIT=100]
| order by: channel ASC, col_name ASC, d_year ASC, d_qoy ASC, i_category ASC
| mem-estimate=7.22KB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=74B cardinality=100
| in pipelines: 17(GETNEXT), 16(OPEN)
|
16:AGGREGATE [FINALIZE]
| output: count(*), sum(ext_sales_price)
| group by: channel, col_name, d_year, d_qoy, i_category
| mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 16(GETNEXT), 01(OPEN), 07(OPEN), 12(OPEN)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=9 row-size=54B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 12(GETNEXT)
|
|--15:HASH JOIN [INNER JOIN]
| | hash predicates: i_item_sk = cs_item_sk
| | fk/pk conjuncts: i_item_sk = cs_item_sk
| | runtime filters: RF008[bloom] <- cs_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=7,8,6 row-size=58B cardinality=7.17K
| | in pipelines: 12(GETNEXT), 13(OPEN)
| |
| |--14:HASH JOIN [INNER JOIN]
| | | hash predicates: d_date_sk = cs_sold_date_sk
| | | fk/pk conjuncts: none
| | | runtime filters: RF010[bloom] <- cs_sold_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=8,6 row-size=32B cardinality=7.17K
| | | in pipelines: 13(GETNEXT), 11(OPEN)
| | |
| | |--11:SCAN HDFS [tpcds_parquet.catalog_sales]
| | | HDFS partitions=1/1 files=3 size=96.62MB
| | | predicates: cs_ship_addr_sk IS NULL
| | | 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=8.00MB thread-reservation=1
| | | tuple-ids=6 row-size=20B cardinality=7.17K
| | | in pipelines: 11(GETNEXT)
| | |
| | 13:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | runtime filters: RF010[bloom] -> d_date_sk
| | 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=8 row-size=12B cardinality=73.05K
| | in pipelines: 13(GETNEXT)
| |
| 12:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF008[bloom] -> i_item_sk
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=7 row-size=26B cardinality=18.00K
| in pipelines: 12(GETNEXT)
|
|--10:HASH JOIN [INNER JOIN]
| | hash predicates: i_item_sk = ws_item_sk
| | fk/pk conjuncts: i_item_sk = ws_item_sk
| | runtime filters: RF004[bloom] <- ws_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=4,5,3 row-size=58B cardinality=173
| | in pipelines: 07(GETNEXT), 08(OPEN)
| |
| |--09:HASH JOIN [INNER JOIN]
| | | hash predicates: d_date_sk = ws_sold_date_sk
| | | fk/pk conjuncts: none
| | | runtime filters: RF006[bloom] <- ws_sold_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=5,3 row-size=32B cardinality=173
| | | in pipelines: 08(GETNEXT), 06(OPEN)
| | |
| | |--06:SCAN HDFS [tpcds_parquet.web_sales]
| | | HDFS partitions=1/1 files=2 size=45.09MB
| | | predicates: ws_ship_customer_sk IS NULL
| | | stored statistics:
| | | table: rows=719.38K size=45.09MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=644.77K
| | | mem-estimate=128.00MB mem-reservation=8.00MB thread-reservation=1
| | | tuple-ids=3 row-size=20B cardinality=173
| | | in pipelines: 06(GETNEXT)
| | |
| | 08:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | runtime filters: RF006[bloom] -> d_date_sk
| | 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=5 row-size=12B cardinality=73.05K
| | in pipelines: 08(GETNEXT)
| |
| 07:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF004[bloom] -> i_item_sk
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=4 row-size=26B cardinality=18.00K
| in pipelines: 07(GETNEXT)
|
05: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=0,1,2 row-size=58B cardinality=130.03K
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--03: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=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=2 row-size=12B cardinality=73.05K
| in pipelines: 03(GETNEXT)
|
04:HASH JOIN [INNER JOIN]
| hash predicates: ss_item_sk = i_item_sk
| fk/pk conjuncts: ss_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=0,1 row-size=46B cardinality=130.03K
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--02: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=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=1 row-size=26B cardinality=18.00K
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales]
HDFS partitions=1824/1824 files=1824 size=200.95MB
predicates: ss_store_sk IS NULL
runtime filters: RF000[bloom] -> ss_sold_date_sk, RF002[bloom] -> ss_item_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=48.00MB mem-reservation=1.00MB thread-reservation=1
tuple-ids=0 row-size=20B cardinality=130.03K
in pipelines: 01(GETNEXT)
---- DISTRIBUTEDPLAN
Max Per-Host Resource Reservation: Memory=45.69MB Threads=19
Per-Host Resource Estimates: Memory=618MB
F13:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=25.23KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: channel, col_name, d_year, d_qoy, i_category, count(*), sum(ext_sales_price)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
28:MERGING-EXCHANGE [UNPARTITIONED]
| order by: channel ASC, col_name ASC, d_year ASC, d_qoy ASC, i_category ASC
| limit: 100
| mem-estimate=25.23KB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=74B cardinality=100
| in pipelines: 17(GETNEXT)
|
F12:PLAN FRAGMENT [HASH(channel,col_name,d_year,d_qoy,i_category)] hosts=3 instances=3
Per-Host Resources: mem-estimate=13.46MB mem-reservation=1.94MB thread-reservation=1
17:TOP-N [LIMIT=100]
| order by: channel ASC, col_name ASC, d_year ASC, d_qoy ASC, i_category ASC
| mem-estimate=7.22KB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=74B cardinality=100
| in pipelines: 17(GETNEXT), 27(OPEN)
|
27:AGGREGATE [FINALIZE]
| output: count:merge(*), sum:merge(ext_sales_price)
| group by: channel, col_name, d_year, d_qoy, i_category
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 27(GETNEXT), 01(OPEN), 07(OPEN), 11(OPEN)
|
26:EXCHANGE [HASH(channel,col_name,d_year,d_qoy,i_category)]
| mem-estimate=3.46MB mem-reservation=0B thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 11(GETNEXT)
|
F11:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=67.20MB mem-reservation=17.88MB thread-reservation=2 runtime-filters-memory=4.00MB
16:AGGREGATE [STREAMING]
| output: count(*), sum(ext_sales_price)
| group by: channel, col_name, d_year, d_qoy, i_category
| mem-estimate=10.00MB mem-reservation=9.00MB spill-buffer=512.00KB thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 11(GETNEXT)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=9 row-size=54B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 11(GETNEXT)
|
|--15:HASH JOIN [INNER JOIN, PARTITIONED]
| | 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=6,8,7 row-size=58B cardinality=7.17K
| | in pipelines: 11(GETNEXT), 12(OPEN)
| |
| |--25:EXCHANGE [HASH(i_item_sk)]
| | | mem-estimate=485.07KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=7 row-size=26B cardinality=18.00K
| | | in pipelines: 12(GETNEXT)
| | |
| | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| | 12: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=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=7 row-size=26B cardinality=18.00K
| | in pipelines: 12(GETNEXT)
| |
| 24:EXCHANGE [HASH(cs_item_sk)]
| | mem-estimate=194.63KB mem-reservation=0B thread-reservation=0
| | tuple-ids=6,8 row-size=32B cardinality=7.17K
| | in pipelines: 11(GETNEXT)
| |
| F08:PLAN FRAGMENT [HASH(cs_sold_date_sk)] hosts=3 instances=3
| Per-Host Resources: mem-estimate=3.90MB mem-reservation=2.94MB thread-reservation=1 runtime-filters-memory=1.00MB
| 14:HASH JOIN [INNER JOIN, PARTITIONED]
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: none
| | runtime filters: RF010[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=6,8 row-size=32B cardinality=7.17K
| | in pipelines: 11(GETNEXT), 13(OPEN)
| |
| |--23:EXCHANGE [HASH(d_date_sk)]
| | | mem-estimate=872.04KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=8 row-size=12B cardinality=73.05K
| | | in pipelines: 13(GETNEXT)
| | |
| | F07:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.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=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=8 row-size=12B cardinality=73.05K
| | in pipelines: 13(GETNEXT)
| |
| 22:EXCHANGE [HASH(cs_sold_date_sk)]
| | mem-estimate=118.65KB mem-reservation=0B thread-reservation=0
| | tuple-ids=6 row-size=20B cardinality=7.17K
| | in pipelines: 11(GETNEXT)
| |
| F06:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Resources: mem-estimate=194.00MB mem-reservation=10.00MB thread-reservation=2 runtime-filters-memory=2.00MB
| 11:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| predicates: cs_ship_addr_sk IS NULL
| runtime filters: 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=8.00MB thread-reservation=1
| tuple-ids=6 row-size=20B cardinality=7.17K
| in pipelines: 11(GETNEXT)
|
|--10:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: i_item_sk = ws_item_sk
| | fk/pk conjuncts: i_item_sk = ws_item_sk
| | runtime filters: RF004[bloom] <- ws_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=4,5,3 row-size=58B cardinality=173
| | in pipelines: 07(GETNEXT), 08(OPEN)
| |
| |--21:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=5,3 row-size=32B cardinality=173
| | | in pipelines: 08(GETNEXT)
| | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=50.95MB mem-reservation=3.44MB thread-reservation=2 runtime-filters-memory=1.00MB
| | 09:HASH JOIN [INNER JOIN, BROADCAST]
| | | hash predicates: d_date_sk = ws_sold_date_sk
| | | fk/pk conjuncts: none
| | | runtime filters: RF006[bloom] <- ws_sold_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=5,3 row-size=32B cardinality=173
| | | in pipelines: 08(GETNEXT), 06(OPEN)
| | |
| | |--20:EXCHANGE [BROADCAST]
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | | tuple-ids=3 row-size=20B cardinality=173
| | | | in pipelines: 06(GETNEXT)
| | | |
| | | F05:PLAN FRAGMENT [RANDOM] hosts=2 instances=2
| | | Per-Host Resources: mem-estimate=128.00MB mem-reservation=8.00MB thread-reservation=2
| | | 06:SCAN HDFS [tpcds_parquet.web_sales, RANDOM]
| | | HDFS partitions=1/1 files=2 size=45.09MB
| | | predicates: ws_ship_customer_sk IS NULL
| | | stored statistics:
| | | table: rows=719.38K size=45.09MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=644.77K
| | | mem-estimate=128.00MB mem-reservation=8.00MB thread-reservation=1
| | | tuple-ids=3 row-size=20B cardinality=173
| | | in pipelines: 06(GETNEXT)
| | |
| | 08:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | runtime filters: RF006[bloom] -> d_date_sk
| | 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=5 row-size=12B cardinality=73.05K
| | in pipelines: 08(GETNEXT)
| |
| 07:SCAN HDFS [tpcds_parquet.item, RANDOM]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF004[bloom] -> i_item_sk
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=4 row-size=26B cardinality=18.00K
| in pipelines: 07(GETNEXT)
|
05:HASH JOIN [INNER JOIN, BROADCAST]
| 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=0,1,2 row-size=58B cardinality=130.03K
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--19:EXCHANGE [BROADCAST]
| | mem-estimate=872.04KB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=12B cardinality=73.05K
| | in pipelines: 03(GETNEXT)
| |
| F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| 03: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=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=2 row-size=12B cardinality=73.05K
| in pipelines: 03(GETNEXT)
|
04:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: ss_item_sk = i_item_sk
| fk/pk conjuncts: ss_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=0,1 row-size=46B cardinality=130.03K
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--18:EXCHANGE [BROADCAST]
| | mem-estimate=485.07KB mem-reservation=0B thread-reservation=0
| | tuple-ids=1 row-size=26B cardinality=18.00K
| | in pipelines: 02(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| 02: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=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=1 row-size=26B cardinality=18.00K
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales, RANDOM]
HDFS partitions=1824/1824 files=1824 size=200.95MB
predicates: ss_store_sk IS NULL
runtime filters: RF000[bloom] -> ss_sold_date_sk, RF002[bloom] -> ss_item_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=48.00MB mem-reservation=1.00MB thread-reservation=1
tuple-ids=0 row-size=20B cardinality=130.03K
in pipelines: 01(GETNEXT)
---- PARALLELPLANS
Max Per-Host Resource Reservation: Memory=68.19MB Threads=20
Per-Host Resource Estimates: Memory=277MB
F13:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=48.05KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: channel, col_name, d_year, d_qoy, i_category, count(*), sum(ext_sales_price)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
28:MERGING-EXCHANGE [UNPARTITIONED]
| order by: channel ASC, col_name ASC, d_year ASC, d_qoy ASC, i_category ASC
| limit: 100
| mem-estimate=48.05KB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=74B cardinality=100
| in pipelines: 17(GETNEXT)
|
F12:PLAN FRAGMENT [HASH(channel,col_name,d_year,d_qoy,i_category)] hosts=3 instances=6
Per-Instance Resources: mem-estimate=13.68MB mem-reservation=1.94MB thread-reservation=1
17:TOP-N [LIMIT=100]
| order by: channel ASC, col_name ASC, d_year ASC, d_qoy ASC, i_category ASC
| mem-estimate=7.22KB mem-reservation=0B thread-reservation=0
| tuple-ids=12 row-size=74B cardinality=100
| in pipelines: 17(GETNEXT), 27(OPEN)
|
27:AGGREGATE [FINALIZE]
| output: count:merge(*), sum:merge(ext_sales_price)
| group by: channel, col_name, d_year, d_qoy, i_category
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 27(GETNEXT), 01(OPEN), 07(OPEN), 11(OPEN)
|
26:EXCHANGE [HASH(channel,col_name,d_year,d_qoy,i_category)]
| mem-estimate=3.68MB mem-reservation=0B thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 11(GETNEXT)
|
F11:PLAN FRAGMENT [RANDOM] hosts=3 instances=6
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=26.00MB mem-reservation=6.00MB thread-reservation=1
16:AGGREGATE [STREAMING]
| output: count(*), sum(ext_sales_price)
| group by: channel, col_name, d_year, d_qoy, i_category
| mem-estimate=10.00MB mem-reservation=5.00MB spill-buffer=256.00KB thread-reservation=0
| tuple-ids=11 row-size=74B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 11(GETNEXT)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=9 row-size=54B cardinality=137.37K
| in pipelines: 01(GETNEXT), 07(GETNEXT), 11(GETNEXT)
|
|--15:HASH JOIN [INNER JOIN, PARTITIONED]
| | hash-table-id=04
| | 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=6,8,7 row-size=58B cardinality=7.17K
| | in pipelines: 11(GETNEXT), 12(OPEN)
| |
| |--F18:PLAN FRAGMENT [RANDOM] hosts=3 instances=6
| | | Per-Instance Resources: mem-estimate=3.41MB mem-reservation=2.94MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=04 plan-id=05 cohort-id=01
| | | build expressions: 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
| | |
| | 25:EXCHANGE [HASH(i_item_sk)]
| | | mem-estimate=485.07KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=7 row-size=26B cardinality=18.00K
| | | in pipelines: 12(GETNEXT)
| | |
| | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1
| | 12: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=7 row-size=26B cardinality=18.00K
| | in pipelines: 12(GETNEXT)
| |
| 24:EXCHANGE [HASH(cs_item_sk)]
| | mem-estimate=194.63KB mem-reservation=0B thread-reservation=0
| | tuple-ids=6,8 row-size=32B cardinality=7.17K
| | in pipelines: 11(GETNEXT)
| |
| F08:PLAN FRAGMENT [HASH(cs_sold_date_sk)] hosts=3 instances=3
| Per-Instance Resources: mem-estimate=118.65KB mem-reservation=0B thread-reservation=1
| 14:HASH JOIN [INNER JOIN, PARTITIONED]
| | hash-table-id=05
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: none
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=6,8 row-size=32B cardinality=7.17K
| | in pipelines: 11(GETNEXT), 13(OPEN)
| |
| |--F19:PLAN FRAGMENT [HASH(cs_sold_date_sk)] hosts=3 instances=3
| | | Per-Instance Resources: mem-estimate=3.79MB mem-reservation=2.94MB thread-reservation=1 runtime-filters-memory=1.00MB
| | JOIN BUILD
| | | join-table-id=05 plan-id=06 cohort-id=01
| | | build expressions: 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
| | |
| | 23:EXCHANGE [HASH(d_date_sk)]
| | | mem-estimate=872.04KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=8 row-size=12B cardinality=73.05K
| | | in pipelines: 13(GETNEXT)
| | |
| | F07: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=8 row-size=12B cardinality=73.05K
| | in pipelines: 13(GETNEXT)
| |
| 22:EXCHANGE [HASH(cs_sold_date_sk)]
| | mem-estimate=118.65KB mem-reservation=0B thread-reservation=0
| | tuple-ids=6 row-size=20B cardinality=7.17K
| | in pipelines: 11(GETNEXT)
| |
| F06:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| 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=48.00MB mem-reservation=8.00MB thread-reservation=1
| 11:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| predicates: cs_ship_addr_sk IS NULL
| runtime filters: 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=8.00MB thread-reservation=0
| tuple-ids=6 row-size=20B cardinality=7.17K
| in pipelines: 11(GETNEXT)
|
|--10:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=02
| | hash predicates: i_item_sk = ws_item_sk
| | fk/pk conjuncts: i_item_sk = ws_item_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=4,5,3 row-size=58B cardinality=173
| | in pipelines: 07(GETNEXT), 08(OPEN)
| |
| |--F16: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=02 plan-id=03 cohort-id=01
| | | build expressions: ws_item_sk
| | | runtime filters: RF004[bloom] <- ws_item_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 21:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=5,3 row-size=32B cardinality=173
| | | in pipelines: 08(GETNEXT)
| | |
| | F04: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=512.00KB thread-reservation=1
| | 09:HASH JOIN [INNER JOIN, BROADCAST]
| | | hash-table-id=03
| | | hash predicates: d_date_sk = ws_sold_date_sk
| | | fk/pk conjuncts: none
| | | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=5,3 row-size=32B cardinality=173
| | | in pipelines: 08(GETNEXT), 06(OPEN)
| | |
| | |--F17:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | | | 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: ws_sold_date_sk
| | | | runtime filters: RF006[bloom] <- ws_sold_date_sk
| | | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | | |
| | | 20:EXCHANGE [BROADCAST]
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | | tuple-ids=3 row-size=20B cardinality=173
| | | | in pipelines: 06(GETNEXT)
| | | |
| | | F05:PLAN FRAGMENT [RANDOM] hosts=2 instances=2
| | | Per-Instance Resources: mem-estimate=32.00MB mem-reservation=8.00MB thread-reservation=1
| | | 06:SCAN HDFS [tpcds_parquet.web_sales, RANDOM]
| | | HDFS partitions=1/1 files=2 size=45.09MB
| | | predicates: ws_ship_customer_sk IS NULL
| | | 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=8.00MB thread-reservation=0
| | | tuple-ids=3 row-size=20B cardinality=173
| | | in pipelines: 06(GETNEXT)
| | |
| | 08:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | runtime filters: RF006[bloom] -> d_date_sk
| | 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=5 row-size=12B cardinality=73.05K
| | in pipelines: 08(GETNEXT)
| |
| 07:SCAN HDFS [tpcds_parquet.item, RANDOM]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF004[bloom] -> i_item_sk
| 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=4 row-size=26B cardinality=18.00K
| in pipelines: 07(GETNEXT)
|
05:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=00
| 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=0,1,2 row-size=58B cardinality=130.03K
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--F14:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=5.73MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=00 plan-id=01 cohort-id=01
| | build expressions: d_date_sk
| | runtime filters: RF000[bloom] <- d_date_sk
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 19:EXCHANGE [BROADCAST]
| | mem-estimate=872.04KB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=12B cardinality=73.05K
| | in pipelines: 03(GETNEXT)
| |
| F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| 03: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=2 row-size=12B cardinality=73.05K
| in pipelines: 03(GETNEXT)
|
04:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=01
| hash predicates: ss_item_sk = i_item_sk
| fk/pk conjuncts: ss_item_sk = i_item_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1 row-size=46B cardinality=130.03K
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--F15:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| | Per-Instance Resources: mem-estimate=5.35MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=01 plan-id=02 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
| |
| 18:EXCHANGE [BROADCAST]
| | mem-estimate=485.07KB mem-reservation=0B thread-reservation=0
| | tuple-ids=1 row-size=26B cardinality=18.00K
| | in pipelines: 02(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1
| 02: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=1 row-size=26B cardinality=18.00K
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales, RANDOM]
HDFS partitions=1824/1824 files=1824 size=200.95MB
predicates: ss_store_sk IS NULL
runtime filters: RF000[bloom] -> ss_sold_date_sk, RF002[bloom] -> ss_item_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=0 row-size=20B cardinality=130.03K
in pipelines: 01(GETNEXT)
====