blob: e17a94c68a82b8c6ff872dedc9f929d57a41d478 [file] [log] [blame]
# TPCDS-Q77
with ss as
(select s_store_sk,
sum(ss_ext_sales_price) as sales,
sum(ss_net_profit) as profit
from store_sales,
date_dim,
store
where ss_sold_date_sk = d_date_sk
and d_date between cast('1998-08-04' as date)
and (cast('1998-08-04' as date) + interval 30 days)
and ss_store_sk = s_store_sk
group by s_store_sk)
,
sr as
(select s_store_sk,
sum(sr_return_amt) as `returns`,
sum(sr_net_loss) as profit_loss
from store_returns,
date_dim,
store
where sr_returned_date_sk = d_date_sk
and d_date between cast('1998-08-04' as date)
and (cast('1998-08-04' as date) + interval 30 days)
and sr_store_sk = s_store_sk
group by s_store_sk),
cs as
(select cs_call_center_sk,
sum(cs_ext_sales_price) as sales,
sum(cs_net_profit) as profit
from catalog_sales,
date_dim
where cs_sold_date_sk = d_date_sk
and d_date between cast('1998-08-04' as date)
and (cast('1998-08-04' as date) + interval 30 days)
group by cs_call_center_sk
),
cr as
(select
sum(cr_return_amount) as `returns`,
sum(cr_net_loss) as profit_loss
from catalog_returns,
date_dim
where cr_returned_date_sk = d_date_sk
and d_date between cast('1998-08-04' as date)
and (cast('1998-08-04' as date) + interval 30 days)
),
ws as
( select wp_web_page_sk,
sum(ws_ext_sales_price) as sales,
sum(ws_net_profit) as profit
from web_sales,
date_dim,
web_page
where ws_sold_date_sk = d_date_sk
and d_date between cast('1998-08-04' as date)
and (cast('1998-08-04' as date) + interval 30 days)
and ws_web_page_sk = wp_web_page_sk
group by wp_web_page_sk),
wr as
(select wp_web_page_sk,
sum(wr_return_amt) as `returns`,
sum(wr_net_loss) as profit_loss
from web_returns,
date_dim,
web_page
where wr_returned_date_sk = d_date_sk
and d_date between cast('1998-08-04' as date)
and (cast('1998-08-04' as date) + interval 30 days)
and wr_web_page_sk = wp_web_page_sk
group by wp_web_page_sk)
select channel
, id
, sum(sales) as sales
, sum(`returns`) as `returns`
, sum(profit) as profit
from
(select 'store channel' as channel
, ss.s_store_sk as id
, sales
, coalesce(`returns`, 0) as `returns`
, (profit - coalesce(profit_loss,0)) as profit
from ss left join sr
on ss.s_store_sk = sr.s_store_sk
union all
select 'catalog channel' as channel
, cs_call_center_sk as id
, sales
, `returns`
, (profit - profit_loss) as profit
from cs
, cr
union all
select 'web channel' as channel
, ws.wp_web_page_sk as id
, sales
, coalesce(`returns`, 0) `returns`
, (profit - coalesce(profit_loss,0)) as profit
from ws left join wr
on ws.wp_web_page_sk = wr.wp_web_page_sk
) x
group by rollup (channel, id)
order by channel
,id
,sales desc
limit 100;
---- PLAN
Max Per-Host Resource Reservation: Memory=36.44MB Threads=7
Per-Host Resource Estimates: Memory=372MB
F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=371.88MB mem-reservation=36.44MB thread-reservation=7 runtime-filters-memory=10.00MB
PLAN-ROOT SINK
| output exprs: CASE valid_tid(32,30,31) WHEN 30 THEN channel WHEN 31 THEN channel WHEN 32 THEN NULL END, CASE valid_tid(32,30,31) WHEN 30 THEN id WHEN 31 THEN NULL WHEN 32 THEN NULL END, aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(sales) WHEN 31 THEN sum(sales) WHEN 32 THEN sum(sales) END), aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(`returns`) WHEN 31 THEN sum(`returns`) WHEN 32 THEN sum(`returns`) END), aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(profit) WHEN 31 THEN sum(profit) WHEN 32 THEN sum(profit) END)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
38:TOP-N [LIMIT=100]
| order by: CASE valid_tid(32,30,31) WHEN 30 THEN channel WHEN 31 THEN channel WHEN 32 THEN NULL END ASC, CASE valid_tid(32,30,31) WHEN 30 THEN id WHEN 31 THEN NULL WHEN 32 THEN NULL END ASC, aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(sales) WHEN 31 THEN sum(sales) WHEN 32 THEN sum(sales) END) DESC
| mem-estimate=5.12KB mem-reservation=0B thread-reservation=0
| tuple-ids=34 row-size=64B cardinality=82
| in pipelines: 38(GETNEXT), 37(OPEN)
|
37:AGGREGATE [FINALIZE]
| output: aggif(valid_tid(32,30,31) IN (CAST(30 AS INT), CAST(31 AS INT), CAST(32 AS INT)), CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN sum(sales) WHEN CAST(31 AS INT) THEN sum(sales) WHEN CAST(32 AS INT) THEN sum(sales) END), aggif(valid_tid(32,30,31) IN (CAST(30 AS INT), CAST(31 AS INT), CAST(32 AS INT)), CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN sum(`returns`) WHEN CAST(31 AS INT) THEN sum(`returns`) WHEN CAST(32 AS INT) THEN sum(`returns`) END), aggif(valid_tid(32,30,31) IN (CAST(30 AS INT), CAST(31 AS INT), CAST(32 AS INT)), CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN sum(profit) WHEN CAST(31 AS INT) THEN sum(profit) WHEN CAST(32 AS INT) THEN sum(profit) END)
| group by: CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN channel WHEN CAST(31 AS INT) THEN channel WHEN CAST(32 AS INT) THEN NULL END, CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN id WHEN CAST(31 AS INT) THEN NULL WHEN CAST(32 AS INT) THEN NULL END, CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN CAST(30 AS INT) WHEN CAST(31 AS INT) THEN CAST(31 AS INT) WHEN CAST(32 AS INT) THEN CAST(32 AS INT) END
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=33 row-size=68B cardinality=82
| in pipelines: 37(GETNEXT), 36(OPEN)
|
36:AGGREGATE [FINALIZE]
| Class 0
| output: sum(sales), sum(returns), sum(profit)
| group by: channel, id
| Class 1
| output: sum(sales), sum(returns), sum(profit)
| group by: channel, NULL
| Class 2
| output: sum(sales), sum(returns), sum(profit)
| group by: NULL, NULL
| mem-estimate=30.00MB mem-reservation=5.81MB thread-reservation=0
| tuple-ids=30N,31N,32N row-size=192B cardinality=82
| in pipelines: 36(GETNEXT), 06(OPEN), 17(OPEN), 28(OPEN)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=28 row-size=64B cardinality=78
| in pipelines: 06(GETNEXT), 17(GETNEXT), 28(GETNEXT)
|
|--35:HASH JOIN [LEFT OUTER JOIN]
| | hash predicates: wp_web_page_sk = wp_web_page_sk
| | fk/pk conjuncts: wp_web_page_sk = wp_web_page_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=21,26N row-size=72B cardinality=60
| | in pipelines: 28(GETNEXT), 34(OPEN)
| |
| |--34:AGGREGATE [FINALIZE]
| | | output: sum(wr_return_amt), sum(wr_net_loss)
| | | group by: wp_web_page_sk
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=26 row-size=36B cardinality=60
| | | in pipelines: 34(GETNEXT), 29(OPEN)
| | |
| | 33:HASH JOIN [INNER JOIN]
| | | hash predicates: wr_web_page_sk = wp_web_page_sk
| | | fk/pk conjuncts: wr_web_page_sk = wp_web_page_sk
| | | runtime filters: RF016[bloom] <- wp_web_page_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=23,24,25 row-size=46B cardinality=71.76K
| | | in pipelines: 29(GETNEXT), 31(OPEN)
| | |
| | |--31:SCAN HDFS [tpcds_parquet.web_page]
| | | HDFS partitions=1/1 files=1 size=5.56KB
| | | stored statistics:
| | | table: rows=60 size=5.56KB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=60
| | | mem-estimate=16.00MB mem-reservation=8.00KB thread-reservation=1
| | | tuple-ids=25 row-size=4B cardinality=60
| | | in pipelines: 31(GETNEXT)
| | |
| | 32:HASH JOIN [INNER JOIN]
| | | hash predicates: wr_returned_date_sk = d_date_sk
| | | fk/pk conjuncts: wr_returned_date_sk = d_date_sk
| | | runtime filters: RF018[bloom] <- d_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=23,24 row-size=42B cardinality=71.76K
| | | in pipelines: 29(GETNEXT), 30(OPEN)
| | |
| | |--30:SCAN HDFS [tpcds_parquet.date_dim]
| | | HDFS partitions=1/1 files=1 size=2.15MB
| | | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | stored statistics:
| | | table: rows=73.05K size=2.15MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | | tuple-ids=24 row-size=26B cardinality=7.30K
| | | in pipelines: 30(GETNEXT)
| | |
| | 29:SCAN HDFS [tpcds_parquet.web_returns]
| | HDFS partitions=1/1 files=1 size=5.66MB
| | runtime filters: RF016[bloom] -> wr_web_page_sk, RF018[bloom] -> wr_returned_date_sk
| | stored statistics:
| | table: rows=71.76K size=5.66MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=71.76K
| | mem-estimate=64.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=23 row-size=16B cardinality=71.76K
| | in pipelines: 29(GETNEXT)
| |
| 28:AGGREGATE [FINALIZE]
| | output: sum(ws_ext_sales_price), sum(ws_net_profit)
| | group by: wp_web_page_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=21 row-size=36B cardinality=60
| | in pipelines: 28(GETNEXT), 23(OPEN)
| |
| 27:HASH JOIN [INNER JOIN]
| | hash predicates: ws_web_page_sk = wp_web_page_sk
| | fk/pk conjuncts: ws_web_page_sk = wp_web_page_sk
| | runtime filters: RF012[bloom] <- wp_web_page_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=18,19,20 row-size=46B cardinality=719.38K
| | in pipelines: 23(GETNEXT), 25(OPEN)
| |
| |--25:SCAN HDFS [tpcds_parquet.web_page]
| | HDFS partitions=1/1 files=1 size=5.56KB
| | stored statistics:
| | table: rows=60 size=5.56KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=60
| | mem-estimate=16.00MB mem-reservation=8.00KB thread-reservation=1
| | tuple-ids=20 row-size=4B cardinality=60
| | in pipelines: 25(GETNEXT)
| |
| 26:HASH JOIN [INNER JOIN]
| | hash predicates: ws_sold_date_sk = d_date_sk
| | fk/pk conjuncts: ws_sold_date_sk = d_date_sk
| | runtime filters: RF014[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=18,19 row-size=42B cardinality=719.38K
| | in pipelines: 23(GETNEXT), 24(OPEN)
| |
| |--24:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=19 row-size=26B cardinality=7.30K
| | in pipelines: 24(GETNEXT)
| |
| 23:SCAN HDFS [tpcds_parquet.web_sales]
| HDFS partitions=1/1 files=2 size=45.09MB
| runtime filters: RF012[bloom] -> ws_web_page_sk, RF014[bloom] -> ws_sold_date_sk
| 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=18 row-size=16B cardinality=719.38K
| in pipelines: 23(GETNEXT)
|
|--22:NESTED LOOP JOIN [CROSS JOIN]
| | mem-estimate=32B mem-reservation=0B thread-reservation=0
| | tuple-ids=12,16 row-size=68B cardinality=6
| | in pipelines: 17(GETNEXT), 21(OPEN)
| |
| |--21:AGGREGATE [FINALIZE]
| | | output: sum(cr_return_amount), sum(cr_net_loss)
| | | mem-estimate=10.00MB mem-reservation=0B spill-buffer=2.00MB thread-reservation=0
| | | tuple-ids=16 row-size=32B cardinality=1
| | | in pipelines: 21(GETNEXT), 18(OPEN)
| | |
| | 20:HASH JOIN [INNER JOIN]
| | | hash predicates: cr_returned_date_sk = d_date_sk
| | | fk/pk conjuncts: cr_returned_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=14,15 row-size=38B cardinality=144.07K
| | | in pipelines: 18(GETNEXT), 19(OPEN)
| | |
| | |--19:SCAN HDFS [tpcds_parquet.date_dim]
| | | HDFS partitions=1/1 files=1 size=2.15MB
| | | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | stored statistics:
| | | table: rows=73.05K size=2.15MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | | tuple-ids=15 row-size=26B cardinality=7.30K
| | | in pipelines: 19(GETNEXT)
| | |
| | 18:SCAN HDFS [tpcds_parquet.catalog_returns]
| | HDFS partitions=1/1 files=1 size=10.62MB
| | runtime filters: RF010[bloom] -> cr_returned_date_sk
| | stored statistics:
| | table: rows=144.07K size=10.62MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=144.07K
| | mem-estimate=72.00MB mem-reservation=2.00MB thread-reservation=1
| | tuple-ids=14 row-size=12B cardinality=144.07K
| | in pipelines: 18(GETNEXT)
| |
| 17:AGGREGATE [FINALIZE]
| | output: sum(cs_ext_sales_price), sum(cs_net_profit)
| | group by: cs_call_center_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=12 row-size=36B cardinality=6
| | in pipelines: 17(GETNEXT), 14(OPEN)
| |
| 16: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: RF008[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=10,11 row-size=42B cardinality=1.44M
| | in pipelines: 14(GETNEXT), 15(OPEN)
| |
| |--15:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=11 row-size=26B cardinality=7.30K
| | in pipelines: 15(GETNEXT)
| |
| 14:SCAN HDFS [tpcds_parquet.catalog_sales]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF008[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=10 row-size=16B cardinality=1.44M
| in pipelines: 14(GETNEXT)
|
13:HASH JOIN [LEFT OUTER JOIN]
| hash predicates: s_store_sk = s_store_sk
| fk/pk conjuncts: s_store_sk = s_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=3,8N row-size=72B cardinality=12
| in pipelines: 06(GETNEXT), 12(OPEN)
|
|--12:AGGREGATE [FINALIZE]
| | output: sum(sr_return_amt), sum(sr_net_loss)
| | group by: s_store_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8 row-size=36B cardinality=12
| | in pipelines: 12(GETNEXT), 07(OPEN)
| |
| 11:HASH JOIN [INNER JOIN]
| | hash predicates: sr_store_sk = s_store_sk
| | fk/pk conjuncts: sr_store_sk = s_store_sk
| | runtime filters: RF004[bloom] <- s_store_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=5,6,7 row-size=46B cardinality=287.51K
| | in pipelines: 07(GETNEXT), 09(OPEN)
| |
| |--09: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=16.00MB mem-reservation=16.00KB thread-reservation=1
| | tuple-ids=7 row-size=4B cardinality=12
| | in pipelines: 09(GETNEXT)
| |
| 10:HASH JOIN [INNER JOIN]
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_date_sk = d_date_sk
| | runtime filters: RF006[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=5,6 row-size=42B cardinality=287.51K
| | in pipelines: 07(GETNEXT), 08(OPEN)
| |
| |--08:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=6 row-size=26B cardinality=7.30K
| | in pipelines: 08(GETNEXT)
| |
| 07:SCAN HDFS [tpcds_parquet.store_returns]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF004[bloom] -> sr_store_sk, RF006[bloom] -> sr_returned_date_sk
| stored statistics:
| table: rows=287.51K size=15.43MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=287.51K
| mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=5 row-size=16B cardinality=287.51K
| in pipelines: 07(GETNEXT)
|
06:AGGREGATE [FINALIZE]
| output: sum(ss_ext_sales_price), sum(ss_net_profit)
| group by: s_store_sk
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=3 row-size=36B cardinality=12
| in pipelines: 06(GETNEXT), 01(OPEN)
|
05:HASH JOIN [INNER JOIN]
| hash predicates: ss_store_sk = s_store_sk
| fk/pk conjuncts: ss_store_sk = s_store_sk
| runtime filters: RF000[bloom] <- s_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2 row-size=46B cardinality=2.88M
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--03: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=16.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=2 row-size=4B cardinality=12
| in pipelines: 03(GETNEXT)
|
04: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: RF002[bloom] <- d_date_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1 row-size=42B cardinality=2.88M
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--02:SCAN HDFS [tpcds_parquet.date_dim]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| tuple-ids=1 row-size=26B cardinality=7.30K
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales]
HDFS partitions=1824/1824 files=1824 size=201.02MB
runtime filters: RF000[bloom] -> ss_store_sk, RF002[bloom] -> ss_sold_date_sk
stored statistics:
table: rows=2.88M size=201.02MB
partitions: 1824/1824 rows=2.88M
columns: all
extrapolated-rows=disabled max-scan-range-rows=130.09K
mem-estimate=48.00MB mem-reservation=2.00MB thread-reservation=1
tuple-ids=0 row-size=16B cardinality=2.88M
in pipelines: 01(GETNEXT)
---- DISTRIBUTEDPLAN
Max Per-Host Resource Reservation: Memory=89.98MB Threads=36
Per-Host Resource Estimates: Memory=1.02GB
F24:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=18.04KB mem-reservation=0B thread-reservation=1
PLAN-ROOT SINK
| output exprs: CASE valid_tid(32,30,31) WHEN 30 THEN channel WHEN 31 THEN channel WHEN 32 THEN NULL END, CASE valid_tid(32,30,31) WHEN 30 THEN id WHEN 31 THEN NULL WHEN 32 THEN NULL END, aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(sales) WHEN 31 THEN sum(sales) WHEN 32 THEN sum(sales) END), aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(`returns`) WHEN 31 THEN sum(`returns`) WHEN 32 THEN sum(`returns`) END), aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(profit) WHEN 31 THEN sum(profit) WHEN 32 THEN sum(profit) END)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
64:MERGING-EXCHANGE [UNPARTITIONED]
| order by: CASE valid_tid(32,30,31) WHEN 30 THEN channel WHEN 31 THEN channel WHEN 32 THEN NULL END ASC, CASE valid_tid(32,30,31) WHEN 30 THEN id WHEN 31 THEN NULL WHEN 32 THEN NULL END ASC, aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(sales) WHEN 31 THEN sum(sales) WHEN 32 THEN sum(sales) END) DESC
| limit: 100
| mem-estimate=18.04KB mem-reservation=0B thread-reservation=0
| tuple-ids=34 row-size=64B cardinality=82
| in pipelines: 38(GETNEXT)
|
F23:PLAN FRAGMENT [HASH(CASE valid_tid(32,30,31) WHEN 30 THEN murmur_hash(channel) WHEN 31 THEN murmur_hash(channel) WHEN 32 THEN murmur_hash(NULL) END,CASE valid_tid(32,30,31) WHEN 30 THEN murmur_hash(id) WHEN 31 THEN murmur_hash(NULL) WHEN 32 THEN murmur_hash(NULL) END)] hosts=3 instances=3
Per-Host Resources: mem-estimate=40.00MB mem-reservation=7.75MB thread-reservation=1
38:TOP-N [LIMIT=100]
| order by: CASE valid_tid(32,30,31) WHEN 30 THEN channel WHEN 31 THEN channel WHEN 32 THEN NULL END ASC, CASE valid_tid(32,30,31) WHEN 30 THEN id WHEN 31 THEN NULL WHEN 32 THEN NULL END ASC, aggif(valid_tid(32,30,31) IN (30, 31, 32), CASE valid_tid(32,30,31) WHEN 30 THEN sum(sales) WHEN 31 THEN sum(sales) WHEN 32 THEN sum(sales) END) DESC
| mem-estimate=5.12KB mem-reservation=0B thread-reservation=0
| tuple-ids=34 row-size=64B cardinality=82
| in pipelines: 38(GETNEXT), 37(OPEN)
|
37:AGGREGATE [FINALIZE]
| output: aggif(valid_tid(32,30,31) IN (CAST(30 AS INT), CAST(31 AS INT), CAST(32 AS INT)), CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN sum(sales) WHEN CAST(31 AS INT) THEN sum(sales) WHEN CAST(32 AS INT) THEN sum(sales) END), aggif(valid_tid(32,30,31) IN (CAST(30 AS INT), CAST(31 AS INT), CAST(32 AS INT)), CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN sum(`returns`) WHEN CAST(31 AS INT) THEN sum(`returns`) WHEN CAST(32 AS INT) THEN sum(`returns`) END), aggif(valid_tid(32,30,31) IN (CAST(30 AS INT), CAST(31 AS INT), CAST(32 AS INT)), CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN sum(profit) WHEN CAST(31 AS INT) THEN sum(profit) WHEN CAST(32 AS INT) THEN sum(profit) END)
| group by: CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN channel WHEN CAST(31 AS INT) THEN channel WHEN CAST(32 AS INT) THEN NULL END, CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN id WHEN CAST(31 AS INT) THEN NULL WHEN CAST(32 AS INT) THEN NULL END, CASE valid_tid(32,30,31) WHEN CAST(30 AS INT) THEN CAST(30 AS INT) WHEN CAST(31 AS INT) THEN CAST(31 AS INT) WHEN CAST(32 AS INT) THEN CAST(32 AS INT) END
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=33 row-size=68B cardinality=82
| in pipelines: 37(GETNEXT), 63(OPEN)
|
63:AGGREGATE [FINALIZE]
| Class 0
| output: sum:merge(sales), sum:merge(`returns`), sum:merge(profit)
| group by: channel, id
| Class 1
| output: sum:merge(sales), sum:merge(`returns`), sum:merge(profit)
| group by: channel, NULL
| Class 2
| output: sum:merge(sales), sum:merge(`returns`), sum:merge(profit)
| group by: NULL, NULL
| mem-estimate=30.00MB mem-reservation=5.81MB thread-reservation=0
| tuple-ids=30N,31N,32N row-size=192B cardinality=82
| in pipelines: 63(GETNEXT), 42(OPEN), 49(OPEN), 57(OPEN)
|
62:EXCHANGE [HASH(CASE valid_tid(32,30,31) WHEN 30 THEN murmur_hash(channel) WHEN 31 THEN murmur_hash(channel) WHEN 32 THEN murmur_hash(NULL) END,CASE valid_tid(32,30,31) WHEN 30 THEN murmur_hash(id) WHEN 31 THEN murmur_hash(NULL) WHEN 32 THEN murmur_hash(NULL) END)]
| mem-estimate=54.13KB mem-reservation=0B thread-reservation=0
| tuple-ids=30N,31N,32N row-size=192B cardinality=82
| in pipelines: 42(GETNEXT), 49(GETNEXT), 57(GETNEXT)
|
F22:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=51.95MB mem-reservation=11.81MB thread-reservation=1
36:AGGREGATE [STREAMING]
| Class 0
| output: sum(sales), sum(returns), sum(profit)
| group by: channel, id
| Class 1
| output: sum(sales), sum(returns), sum(profit)
| group by: channel, NULL
| Class 2
| output: sum(sales), sum(returns), sum(profit)
| group by: NULL, NULL
| mem-estimate=30.00MB mem-reservation=6.00MB thread-reservation=0
| tuple-ids=30N,31N,32N row-size=192B cardinality=82
| in pipelines: 42(GETNEXT), 49(GETNEXT), 57(GETNEXT)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=28 row-size=64B cardinality=78
| in pipelines: 42(GETNEXT), 49(GETNEXT), 57(GETNEXT)
|
|--35:HASH JOIN [LEFT OUTER JOIN, PARTITIONED]
| | hash predicates: wp_web_page_sk = wp_web_page_sk
| | fk/pk conjuncts: wp_web_page_sk = wp_web_page_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=21,26N row-size=72B cardinality=60
| | in pipelines: 57(GETNEXT), 61(OPEN)
| |
| |--61:AGGREGATE [FINALIZE]
| | | output: sum:merge(wr_return_amt), sum:merge(wr_net_loss)
| | | group by: wp_web_page_sk
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=26 row-size=36B cardinality=60
| | | in pipelines: 61(GETNEXT), 29(OPEN)
| | |
| | 60:EXCHANGE [HASH(wp_web_page_sk)]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=26 row-size=36B cardinality=60
| | | in pipelines: 29(GETNEXT)
| | |
| | F18:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=80.10MB mem-reservation=8.88MB thread-reservation=2 runtime-filters-memory=2.00MB
| | 34:AGGREGATE [STREAMING]
| | | output: sum(wr_return_amt), sum(wr_net_loss)
| | | group by: wp_web_page_sk
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=26 row-size=36B cardinality=60
| | | in pipelines: 29(GETNEXT)
| | |
| | 33:HASH JOIN [INNER JOIN, BROADCAST]
| | | hash predicates: wr_web_page_sk = wp_web_page_sk
| | | fk/pk conjuncts: wr_web_page_sk = wp_web_page_sk
| | | runtime filters: RF016[bloom] <- wp_web_page_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=23,24,25 row-size=46B cardinality=71.76K
| | | in pipelines: 29(GETNEXT), 31(OPEN)
| | |
| | |--59:EXCHANGE [BROADCAST]
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | | tuple-ids=25 row-size=4B cardinality=60
| | | | in pipelines: 31(GETNEXT)
| | | |
| | | F20:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | | Per-Host Resources: mem-estimate=16.00MB mem-reservation=8.00KB thread-reservation=2
| | | 31:SCAN HDFS [tpcds_parquet.web_page, RANDOM]
| | | HDFS partitions=1/1 files=1 size=5.56KB
| | | stored statistics:
| | | table: rows=60 size=5.56KB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=60
| | | mem-estimate=16.00MB mem-reservation=8.00KB thread-reservation=1
| | | tuple-ids=25 row-size=4B cardinality=60
| | | in pipelines: 31(GETNEXT)
| | |
| | 32:HASH JOIN [INNER JOIN, BROADCAST]
| | | hash predicates: wr_returned_date_sk = d_date_sk
| | | fk/pk conjuncts: wr_returned_date_sk = d_date_sk
| | | runtime filters: RF018[bloom] <- d_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=23,24 row-size=42B cardinality=71.76K
| | | in pipelines: 29(GETNEXT), 30(OPEN)
| | |
| | |--58:EXCHANGE [BROADCAST]
| | | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0
| | | | tuple-ids=24 row-size=26B cardinality=7.30K
| | | | in pipelines: 30(GETNEXT)
| | | |
| | | F19:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2
| | | 30:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | | HDFS partitions=1/1 files=1 size=2.15MB
| | | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | stored statistics:
| | | table: rows=73.05K size=2.15MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | | tuple-ids=24 row-size=26B cardinality=7.30K
| | | in pipelines: 30(GETNEXT)
| | |
| | 29:SCAN HDFS [tpcds_parquet.web_returns, RANDOM]
| | HDFS partitions=1/1 files=1 size=5.66MB
| | runtime filters: RF016[bloom] -> wr_web_page_sk, RF018[bloom] -> wr_returned_date_sk
| | stored statistics:
| | table: rows=71.76K size=5.66MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=71.76K
| | mem-estimate=64.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=23 row-size=16B cardinality=71.76K
| | in pipelines: 29(GETNEXT)
| |
| 57:AGGREGATE [FINALIZE]
| | output: sum:merge(ws_ext_sales_price), sum:merge(ws_net_profit)
| | group by: wp_web_page_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=21 row-size=36B cardinality=60
| | in pipelines: 57(GETNEXT), 23(OPEN)
| |
| 56:EXCHANGE [HASH(wp_web_page_sk)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=21 row-size=36B cardinality=60
| | in pipelines: 23(GETNEXT)
| |
| F14:PLAN FRAGMENT [RANDOM] hosts=2 instances=2
| Per-Host Resources: mem-estimate=144.10MB mem-reservation=15.88MB thread-reservation=2 runtime-filters-memory=2.00MB
| 28:AGGREGATE [STREAMING]
| | output: sum(ws_ext_sales_price), sum(ws_net_profit)
| | group by: wp_web_page_sk
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=21 row-size=36B cardinality=60
| | in pipelines: 23(GETNEXT)
| |
| 27:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: ws_web_page_sk = wp_web_page_sk
| | fk/pk conjuncts: ws_web_page_sk = wp_web_page_sk
| | runtime filters: RF012[bloom] <- wp_web_page_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=18,19,20 row-size=46B cardinality=719.38K
| | in pipelines: 23(GETNEXT), 25(OPEN)
| |
| |--55:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=20 row-size=4B cardinality=60
| | | in pipelines: 25(GETNEXT)
| | |
| | F16:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=16.00MB mem-reservation=8.00KB thread-reservation=2
| | 25:SCAN HDFS [tpcds_parquet.web_page, RANDOM]
| | HDFS partitions=1/1 files=1 size=5.56KB
| | stored statistics:
| | table: rows=60 size=5.56KB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=60
| | mem-estimate=16.00MB mem-reservation=8.00KB thread-reservation=1
| | tuple-ids=20 row-size=4B cardinality=60
| | in pipelines: 25(GETNEXT)
| |
| 26:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: ws_sold_date_sk = d_date_sk
| | fk/pk conjuncts: ws_sold_date_sk = d_date_sk
| | runtime filters: RF014[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=18,19 row-size=42B cardinality=719.38K
| | in pipelines: 23(GETNEXT), 24(OPEN)
| |
| |--54:EXCHANGE [BROADCAST]
| | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=19 row-size=26B cardinality=7.30K
| | | in pipelines: 24(GETNEXT)
| | |
| | F15:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2
| | 24:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=19 row-size=26B cardinality=7.30K
| | in pipelines: 24(GETNEXT)
| |
| 23:SCAN HDFS [tpcds_parquet.web_sales, RANDOM]
| HDFS partitions=1/1 files=2 size=45.09MB
| runtime filters: RF012[bloom] -> ws_web_page_sk, RF014[bloom] -> ws_sold_date_sk
| 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=18 row-size=16B cardinality=719.38K
| in pipelines: 23(GETNEXT)
|
|--22:NESTED LOOP JOIN [CROSS JOIN, BROADCAST]
| | mem-estimate=32B mem-reservation=0B thread-reservation=0
| | tuple-ids=12,16 row-size=68B cardinality=6
| | in pipelines: 49(GETNEXT), 52(OPEN)
| |
| |--53:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=16 row-size=32B cardinality=1
| | | in pipelines: 52(GETNEXT)
| | |
| | F13:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=10.02MB mem-reservation=0B thread-reservation=1
| | 52:AGGREGATE [FINALIZE]
| | | output: sum:merge(cr_return_amount), sum:merge(cr_net_loss)
| | | mem-estimate=10.00MB mem-reservation=0B spill-buffer=2.00MB thread-reservation=0
| | | tuple-ids=16 row-size=32B cardinality=1
| | | in pipelines: 52(GETNEXT), 21(OPEN)
| | |
| | 51:EXCHANGE [UNPARTITIONED]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=16 row-size=32B cardinality=1
| | | in pipelines: 21(GETNEXT)
| | |
| | F11:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=84.94MB mem-reservation=4.94MB thread-reservation=2 runtime-filters-memory=1.00MB
| | 21:AGGREGATE
| | | output: sum(cr_return_amount), sum(cr_net_loss)
| | | mem-estimate=10.00MB mem-reservation=0B spill-buffer=2.00MB thread-reservation=0
| | | tuple-ids=16 row-size=32B cardinality=1
| | | in pipelines: 21(GETNEXT), 18(OPEN)
| | |
| | 20:HASH JOIN [INNER JOIN, BROADCAST]
| | | hash predicates: cr_returned_date_sk = d_date_sk
| | | fk/pk conjuncts: cr_returned_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=14,15 row-size=38B cardinality=144.07K
| | | in pipelines: 18(GETNEXT), 19(OPEN)
| | |
| | |--50:EXCHANGE [BROADCAST]
| | | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0
| | | | tuple-ids=15 row-size=26B cardinality=7.30K
| | | | in pipelines: 19(GETNEXT)
| | | |
| | | F12:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2
| | | 19:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | | HDFS partitions=1/1 files=1 size=2.15MB
| | | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | stored statistics:
| | | table: rows=73.05K size=2.15MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | | tuple-ids=15 row-size=26B cardinality=7.30K
| | | in pipelines: 19(GETNEXT)
| | |
| | 18:SCAN HDFS [tpcds_parquet.catalog_returns, RANDOM]
| | HDFS partitions=1/1 files=1 size=10.62MB
| | runtime filters: RF010[bloom] -> cr_returned_date_sk
| | stored statistics:
| | table: rows=144.07K size=10.62MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=144.07K
| | mem-estimate=72.00MB mem-reservation=2.00MB thread-reservation=1
| | tuple-ids=14 row-size=12B cardinality=144.07K
| | in pipelines: 18(GETNEXT)
| |
| 49:AGGREGATE [FINALIZE]
| | output: sum:merge(cs_ext_sales_price), sum:merge(cs_net_profit)
| | group by: cs_call_center_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=12 row-size=36B cardinality=6
| | in pipelines: 49(GETNEXT), 14(OPEN)
| |
| 48:EXCHANGE [HASH(cs_call_center_sk)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=12 row-size=36B cardinality=6
| | in pipelines: 14(GETNEXT)
| |
| F08:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Resources: mem-estimate=205.15MB mem-reservation=12.94MB thread-reservation=2 runtime-filters-memory=1.00MB
| 17:AGGREGATE [STREAMING]
| | output: sum(cs_ext_sales_price), sum(cs_net_profit)
| | group by: cs_call_center_sk
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=12 row-size=36B cardinality=6
| | in pipelines: 14(GETNEXT)
| |
| 16: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: RF008[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=10,11 row-size=42B cardinality=1.44M
| | in pipelines: 14(GETNEXT), 15(OPEN)
| |
| |--47:EXCHANGE [BROADCAST]
| | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=11 row-size=26B cardinality=7.30K
| | | in pipelines: 15(GETNEXT)
| | |
| | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2
| | 15:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=11 row-size=26B cardinality=7.30K
| | in pipelines: 15(GETNEXT)
| |
| 14:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF008[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=10 row-size=16B cardinality=1.44M
| in pipelines: 14(GETNEXT)
|
13:HASH JOIN [LEFT OUTER JOIN, PARTITIONED]
| hash predicates: s_store_sk = s_store_sk
| fk/pk conjuncts: s_store_sk = s_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=3,8N row-size=72B cardinality=12
| in pipelines: 42(GETNEXT), 46(OPEN)
|
|--46:AGGREGATE [FINALIZE]
| | output: sum:merge(sr_return_amt), sum:merge(sr_net_loss)
| | group by: s_store_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8 row-size=36B cardinality=12
| | in pipelines: 46(GETNEXT), 07(OPEN)
| |
| 45:EXCHANGE [HASH(s_store_sk)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=8 row-size=36B cardinality=12
| | in pipelines: 07(GETNEXT)
| |
| F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=112.10MB mem-reservation=11.88MB thread-reservation=2 runtime-filters-memory=2.00MB
| 12:AGGREGATE [STREAMING]
| | output: sum(sr_return_amt), sum(sr_net_loss)
| | group by: s_store_sk
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8 row-size=36B cardinality=12
| | in pipelines: 07(GETNEXT)
| |
| 11:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: sr_store_sk = s_store_sk
| | fk/pk conjuncts: sr_store_sk = s_store_sk
| | runtime filters: RF004[bloom] <- s_store_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=5,6,7 row-size=46B cardinality=287.51K
| | in pipelines: 07(GETNEXT), 09(OPEN)
| |
| |--44:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=7 row-size=4B cardinality=12
| | | in pipelines: 09(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=2
| | 09: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=1
| | tuple-ids=7 row-size=4B cardinality=12
| | in pipelines: 09(GETNEXT)
| |
| 10:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_date_sk = d_date_sk
| | runtime filters: RF006[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=5,6 row-size=42B cardinality=287.51K
| | in pipelines: 07(GETNEXT), 08(OPEN)
| |
| |--43:EXCHANGE [BROADCAST]
| | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=6 row-size=26B cardinality=7.30K
| | | in pipelines: 08(GETNEXT)
| | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2
| | 08:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | stored statistics:
| | table: rows=73.05K size=2.15MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=73.05K
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| | tuple-ids=6 row-size=26B cardinality=7.30K
| | in pipelines: 08(GETNEXT)
| |
| 07:SCAN HDFS [tpcds_parquet.store_returns, RANDOM]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF004[bloom] -> sr_store_sk, RF006[bloom] -> sr_returned_date_sk
| stored statistics:
| table: rows=287.51K size=15.43MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=287.51K
| mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=5 row-size=16B cardinality=287.51K
| in pipelines: 07(GETNEXT)
|
42:AGGREGATE [FINALIZE]
| output: sum:merge(ss_ext_sales_price), sum:merge(ss_net_profit)
| group by: s_store_sk
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=3 row-size=36B cardinality=12
| in pipelines: 42(GETNEXT), 01(OPEN)
|
41:EXCHANGE [HASH(s_store_sk)]
| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=3 row-size=36B cardinality=12
| in pipelines: 01(GETNEXT)
|
F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=64.10MB mem-reservation=9.88MB thread-reservation=2 runtime-filters-memory=2.00MB
06:AGGREGATE [STREAMING]
| output: sum(ss_ext_sales_price), sum(ss_net_profit)
| group by: s_store_sk
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=3 row-size=36B cardinality=12
| in pipelines: 01(GETNEXT)
|
05:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: ss_store_sk = s_store_sk
| fk/pk conjuncts: ss_store_sk = s_store_sk
| runtime filters: RF000[bloom] <- s_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2 row-size=46B cardinality=2.88M
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--40:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=4B cardinality=12
| | in pipelines: 03(GETNEXT)
| |
| F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=2
| 03: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=1
| tuple-ids=2 row-size=4B cardinality=12
| in pipelines: 03(GETNEXT)
|
04: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: RF002[bloom] <- d_date_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1 row-size=42B cardinality=2.88M
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--39:EXCHANGE [BROADCAST]
| | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0
| | tuple-ids=1 row-size=26B cardinality=7.30K
| | in pipelines: 02(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2
| 02:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| stored statistics:
| table: rows=73.05K size=2.15MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=73.05K
| parquet statistics predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '1998-09-03', CAST(d_date AS DATE) >= DATE '1998-08-04'
| mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1
| tuple-ids=1 row-size=26B cardinality=7.30K
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales, RANDOM]
HDFS partitions=1824/1824 files=1824 size=201.02MB
runtime filters: RF000[bloom] -> ss_store_sk, RF002[bloom] -> ss_sold_date_sk
stored statistics:
table: rows=2.88M size=201.02MB
partitions: 1824/1824 rows=2.88M
columns: all
extrapolated-rows=disabled max-scan-range-rows=130.09K
mem-estimate=48.00MB mem-reservation=2.00MB thread-reservation=1
tuple-ids=0 row-size=16B cardinality=2.88M
in pipelines: 01(GETNEXT)
====