| # TPCDS-Q80 |
| with ssr as |
| (select s_store_id as store_id, |
| sum(ss_ext_sales_price) as sales, |
| sum(coalesce(sr_return_amt, 0)) as `returns`, |
| sum(ss_net_profit - coalesce(sr_net_loss, 0)) as profit |
| from store_sales left outer join store_returns on |
| (ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number), |
| date_dim, |
| store, |
| item, |
| promotion |
| 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 |
| and ss_item_sk = i_item_sk |
| and i_current_price > 50 |
| and ss_promo_sk = p_promo_sk |
| and p_channel_tv = 'N' |
| group by s_store_id) |
| , |
| csr as |
| (select cp_catalog_page_id as catalog_page_id, |
| sum(cs_ext_sales_price) as sales, |
| sum(coalesce(cr_return_amount, 0)) as `returns`, |
| sum(cs_net_profit - coalesce(cr_net_loss, 0)) as profit |
| from catalog_sales left outer join catalog_returns on |
| (cs_item_sk = cr_item_sk and cs_order_number = cr_order_number), |
| date_dim, |
| catalog_page, |
| item, |
| promotion |
| 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) |
| and cs_catalog_page_sk = cp_catalog_page_sk |
| and cs_item_sk = i_item_sk |
| and i_current_price > 50 |
| and cs_promo_sk = p_promo_sk |
| and p_channel_tv = 'N' |
| group by cp_catalog_page_id) |
| , |
| wsr as |
| (select web_site_id, |
| sum(ws_ext_sales_price) as sales, |
| sum(coalesce(wr_return_amt, 0)) as `returns`, |
| sum(ws_net_profit - coalesce(wr_net_loss, 0)) as profit |
| from web_sales left outer join web_returns on |
| (ws_item_sk = wr_item_sk and ws_order_number = wr_order_number), |
| date_dim, |
| web_site, |
| item, |
| promotion |
| 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_site_sk = web_site_sk |
| and ws_item_sk = i_item_sk |
| and i_current_price > 50 |
| and ws_promo_sk = p_promo_sk |
| and p_channel_tv = 'N' |
| group by web_site_id) |
| select channel |
| , id |
| , sum(sales) as sales |
| , sum(`returns`) as `returns` |
| , sum(profit) as profit |
| from |
| (select 'store channel' as channel |
| , 'store' || store_id as id |
| , sales |
| , `returns` |
| , profit |
| from ssr |
| union all |
| select 'catalog channel' as channel |
| , 'catalog_page' || catalog_page_id as id |
| , sales |
| , `returns` |
| , profit |
| from csr |
| union all |
| select 'web channel' as channel |
| , 'web_site' || web_site_id as id |
| , sales |
| , `returns` |
| , profit |
| from wsr |
| ) x |
| group by rollup (channel, id) |
| order by channel |
| ,id |
| limit 100 |
| ---- PLAN |
| Max Per-Host Resource Reservation: Memory=52.66MB Threads=7 |
| Per-Host Resource Estimates: Memory=612MB |
| F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=612.50MB mem-reservation=52.66MB thread-reservation=7 runtime-filters-memory=10.00MB |
| PLAN-ROOT SINK |
| | output exprs: CASE valid_tid(26,27,28) WHEN 26 THEN channel WHEN 27 THEN channel WHEN 28 THEN NULL END, CASE valid_tid(26,27,28) WHEN 26 THEN id WHEN 27 THEN NULL WHEN 28 THEN NULL END, aggif(valid_tid(26,27,28) IN (26, 27, 28), CASE valid_tid(26,27,28) WHEN 26 THEN sum(sales) WHEN 27 THEN sum(sales) WHEN 28 THEN sum(sales) END), aggif(valid_tid(26,27,28) IN (26, 27, 28), CASE valid_tid(26,27,28) WHEN 26 THEN sum(`returns`) WHEN 27 THEN sum(`returns`) WHEN 28 THEN sum(`returns`) END), aggif(valid_tid(26,27,28) IN (26, 27, 28), CASE valid_tid(26,27,28) WHEN 26 THEN sum(profit) WHEN 27 THEN sum(profit) WHEN 28 THEN sum(profit) END) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 39:TOP-N [LIMIT=100] |
| | order by: CASE valid_tid(26,27,28) WHEN 26 THEN channel WHEN 27 THEN channel WHEN 28 THEN NULL END ASC, CASE valid_tid(26,27,28) WHEN 26 THEN id WHEN 27 THEN NULL WHEN 28 THEN NULL END ASC |
| | mem-estimate=7.03KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=30 row-size=72B cardinality=100 |
| | in pipelines: 39(GETNEXT), 38(OPEN) |
| | |
| 38:AGGREGATE [FINALIZE] |
| | output: aggif(valid_tid(26,27,28) IN (CAST(26 AS INT), CAST(27 AS INT), CAST(28 AS INT)), CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN sum(sales) WHEN CAST(27 AS INT) THEN sum(sales) WHEN CAST(28 AS INT) THEN sum(sales) END), aggif(valid_tid(26,27,28) IN (CAST(26 AS INT), CAST(27 AS INT), CAST(28 AS INT)), CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN sum(`returns`) WHEN CAST(27 AS INT) THEN sum(`returns`) WHEN CAST(28 AS INT) THEN sum(`returns`) END), aggif(valid_tid(26,27,28) IN (CAST(26 AS INT), CAST(27 AS INT), CAST(28 AS INT)), CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN sum(profit) WHEN CAST(27 AS INT) THEN sum(profit) WHEN CAST(28 AS INT) THEN sum(profit) END) |
| | group by: CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN channel WHEN CAST(27 AS INT) THEN channel WHEN CAST(28 AS INT) THEN NULL END, CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN id WHEN CAST(27 AS INT) THEN NULL WHEN CAST(28 AS INT) THEN NULL END, CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN CAST(26 AS INT) WHEN CAST(27 AS INT) THEN CAST(27 AS INT) WHEN CAST(28 AS INT) THEN CAST(28 AS INT) END |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=29 row-size=76B cardinality=11.56K |
| | in pipelines: 38(GETNEXT), 37(OPEN) |
| | |
| 37: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=8.62MB thread-reservation=0 |
| | tuple-ids=26N,27N,28N row-size=216B cardinality=11.56K |
| | in pipelines: 37(GETNEXT), 12(OPEN), 24(OPEN), 36(OPEN) |
| | |
| 00:UNION |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | tuple-ids=24 row-size=72B cardinality=11.56K |
| | in pipelines: 12(GETNEXT), 24(GETNEXT), 36(GETNEXT) |
| | |
| |--36:AGGREGATE [FINALIZE] |
| | | output: sum(ws_ext_sales_price), sum(coalesce(wr_return_amt, CAST(0 AS DECIMAL(7,2)))), sum(ws_net_profit - coalesce(wr_net_loss, CAST(0 AS DECIMAL(7,2)))) |
| | | group by: web_site_id |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=22 row-size=76B cardinality=15 |
| | | in pipelines: 36(GETNEXT), 25(OPEN) |
| | | |
| | 35:HASH JOIN [INNER JOIN] |
| | | hash predicates: ws_web_site_sk = web_site_sk |
| | | fk/pk conjuncts: ws_web_site_sk = web_site_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20,21,18,19 row-size=147B cardinality=71.46K |
| | | in pipelines: 25(GETNEXT), 28(OPEN) |
| | | |
| | |--28:SCAN HDFS [tpcds_parquet.web_site] |
| | | HDFS partitions=1/1 files=1 size=11.91KB |
| | | stored statistics: |
| | | table: rows=30 size=11.91KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=30 |
| | | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | | tuple-ids=19 row-size=32B cardinality=30 |
| | | in pipelines: 28(GETNEXT) |
| | | |
| | 34:HASH JOIN [INNER JOIN] |
| | | hash predicates: ws_sold_date_sk = d_date_sk |
| | | fk/pk conjuncts: ws_sold_date_sk = d_date_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20,21,18 row-size=115B cardinality=71.46K |
| | | in pipelines: 25(GETNEXT), 27(OPEN) |
| | | |
| | |--27: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=18 row-size=26B cardinality=7.30K |
| | | in pipelines: 27(GETNEXT) |
| | | |
| | 33:HASH JOIN [INNER JOIN] |
| | | hash predicates: ws_promo_sk = p_promo_sk |
| | | fk/pk conjuncts: ws_promo_sk = p_promo_sk |
| | | runtime filters: RF020[bloom] <- p_promo_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20,21 row-size=89B cardinality=71.46K |
| | | in pipelines: 25(GETNEXT), 30(OPEN) |
| | | |
| | |--30:SCAN HDFS [tpcds_parquet.promotion] |
| | | HDFS partitions=1/1 files=1 size=23.30KB |
| | | predicates: p_channel_tv = 'N' |
| | | stored statistics: |
| | | table: rows=300 size=23.30KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=300 |
| | | parquet statistics predicates: p_channel_tv = 'N' |
| | | parquet dictionary predicates: p_channel_tv = 'N' |
| | | mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=1 |
| | | tuple-ids=21 row-size=17B cardinality=300 |
| | | in pipelines: 30(GETNEXT) |
| | | |
| | 32:HASH JOIN [INNER JOIN] |
| | | hash predicates: ws_item_sk = i_item_sk |
| | | fk/pk conjuncts: ws_item_sk = i_item_sk |
| | | runtime filters: RF022[bloom] <- i_item_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20 row-size=72B cardinality=71.94K |
| | | in pipelines: 25(GETNEXT), 29(OPEN) |
| | | |
| | |--29:SCAN HDFS [tpcds_parquet.item] |
| | | HDFS partitions=1/1 files=1 size=1.73MB |
| | | predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | stored statistics: |
| | | table: rows=18.00K size=1.73MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | | parquet statistics predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | parquet dictionary predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | | tuple-ids=20 row-size=12B cardinality=1.80K |
| | | in pipelines: 29(GETNEXT) |
| | | |
| | 31:HASH JOIN [LEFT OUTER JOIN] |
| | | hash predicates: ws_item_sk = wr_item_sk, ws_order_number = wr_order_number |
| | | fk/pk conjuncts: ws_item_sk = wr_item_sk, ws_order_number = wr_order_number |
| | | mem-estimate=2.88MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0 |
| | | tuple-ids=16,17N row-size=60B cardinality=719.38K |
| | | in pipelines: 25(GETNEXT), 26(OPEN) |
| | | |
| | |--26:SCAN HDFS [tpcds_parquet.web_returns] |
| | | HDFS partitions=1/1 files=1 size=5.66MB |
| | | runtime filters: RF022[bloom] -> tpcds_parquet.web_returns.wr_item_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=2.00MB thread-reservation=1 |
| | | tuple-ids=17 row-size=24B cardinality=71.76K |
| | | in pipelines: 26(GETNEXT) |
| | | |
| | 25:SCAN HDFS [tpcds_parquet.web_sales] |
| | HDFS partitions=1/1 files=2 size=45.09MB |
| | runtime filters: RF022[bloom] -> ws_item_sk, RF020[bloom] -> ws_promo_sk |
| | stored statistics: |
| | table: rows=719.38K size=45.09MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=644.77K |
| | mem-estimate=224.00MB mem-reservation=16.00MB thread-reservation=1 |
| | tuple-ids=16 row-size=36B cardinality=719.38K |
| | in pipelines: 25(GETNEXT) |
| | |
| |--24:AGGREGATE [FINALIZE] |
| | | output: sum(cs_ext_sales_price), sum(coalesce(cr_return_amount, CAST(0 AS DECIMAL(7,2)))), sum(cs_net_profit - coalesce(cr_net_loss, CAST(0 AS DECIMAL(7,2)))) |
| | | group by: cp_catalog_page_id |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=14 row-size=76B cardinality=11.54K |
| | | in pipelines: 24(GETNEXT), 13(OPEN) |
| | | |
| | 23:HASH JOIN [INNER JOIN] |
| | | hash predicates: cs_catalog_page_sk = cp_catalog_page_sk |
| | | fk/pk conjuncts: cs_catalog_page_sk = cp_catalog_page_sk |
| | | runtime filters: RF008[bloom] <- cp_catalog_page_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8,9N,12,13,10,11 row-size=147B cardinality=143.20K |
| | | in pipelines: 13(GETNEXT), 16(OPEN) |
| | | |
| | |--16:SCAN HDFS [tpcds_parquet.catalog_page] |
| | | HDFS partitions=1/1 files=1 size=739.17KB |
| | | stored statistics: |
| | | table: rows=11.72K size=739.17KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=11.72K |
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | | tuple-ids=11 row-size=32B cardinality=11.72K |
| | | in pipelines: 16(GETNEXT) |
| | | |
| | 22: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=8,9N,12,13,10 row-size=115B cardinality=143.20K |
| | | in pipelines: 13(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=10 row-size=26B cardinality=7.30K |
| | | in pipelines: 15(GETNEXT) |
| | | |
| | 21:HASH JOIN [INNER JOIN] |
| | | hash predicates: cs_promo_sk = p_promo_sk |
| | | fk/pk conjuncts: cs_promo_sk = p_promo_sk |
| | | runtime filters: RF012[bloom] <- p_promo_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8,9N,12,13 row-size=89B cardinality=143.20K |
| | | in pipelines: 13(GETNEXT), 18(OPEN) |
| | | |
| | |--18:SCAN HDFS [tpcds_parquet.promotion] |
| | | HDFS partitions=1/1 files=1 size=23.30KB |
| | | predicates: p_channel_tv = 'N' |
| | | stored statistics: |
| | | table: rows=300 size=23.30KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=300 |
| | | parquet statistics predicates: p_channel_tv = 'N' |
| | | parquet dictionary predicates: p_channel_tv = 'N' |
| | | mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=1 |
| | | tuple-ids=13 row-size=17B cardinality=300 |
| | | in pipelines: 18(GETNEXT) |
| | | |
| | 20: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=8,9N,12 row-size=72B cardinality=144.16K |
| | | in pipelines: 13(GETNEXT), 17(OPEN) |
| | | |
| | |--17:SCAN HDFS [tpcds_parquet.item] |
| | | HDFS partitions=1/1 files=1 size=1.73MB |
| | | predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | stored statistics: |
| | | table: rows=18.00K size=1.73MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | | parquet statistics predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | parquet dictionary predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | | tuple-ids=12 row-size=12B cardinality=1.80K |
| | | in pipelines: 17(GETNEXT) |
| | | |
| | 19:HASH JOIN [LEFT OUTER JOIN] |
| | | hash predicates: cs_item_sk = cr_item_sk, cs_order_number = cr_order_number |
| | | fk/pk conjuncts: cs_item_sk = cr_item_sk, cs_order_number = cr_order_number |
| | | mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0 |
| | | tuple-ids=8,9N row-size=60B cardinality=1.44M |
| | | in pipelines: 13(GETNEXT), 14(OPEN) |
| | | |
| | |--14:SCAN HDFS [tpcds_parquet.catalog_returns] |
| | | HDFS partitions=1/1 files=1 size=10.62MB |
| | | runtime filters: RF014[bloom] -> tpcds_parquet.catalog_returns.cr_item_sk |
| | | stored statistics: |
| | | table: rows=144.07K size=10.62MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=144.07K |
| | | mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1 |
| | | tuple-ids=9 row-size=24B cardinality=144.07K |
| | | in pipelines: 14(GETNEXT) |
| | | |
| | 13:SCAN HDFS [tpcds_parquet.catalog_sales] |
| | HDFS partitions=1/1 files=3 size=96.62MB |
| | runtime filters: RF014[bloom] -> cs_item_sk, RF012[bloom] -> cs_promo_sk, RF008[bloom] -> cs_catalog_page_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=336.00MB mem-reservation=16.00MB thread-reservation=1 |
| | tuple-ids=8 row-size=36B cardinality=1.44M |
| | in pipelines: 13(GETNEXT) |
| | |
| 12:AGGREGATE [FINALIZE] |
| | output: sum(ss_ext_sales_price), sum(coalesce(sr_return_amt, CAST(0 AS DECIMAL(7,2)))), sum(ss_net_profit - coalesce(sr_net_loss, CAST(0 AS DECIMAL(7,2)))) |
| | group by: s_store_id |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=6 row-size=76B cardinality=6 |
| | in pipelines: 12(GETNEXT), 01(OPEN) |
| | |
| 11: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,1N,4,5,2,3 row-size=147B cardinality=286.13K |
| | in pipelines: 01(GETNEXT), 04(OPEN) |
| | |
| |--04:SCAN HDFS [tpcds_parquet.store] |
| | HDFS partitions=1/1 files=1 size=9.93KB |
| | stored statistics: |
| | table: rows=12 size=9.93KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=12 |
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | tuple-ids=3 row-size=32B cardinality=12 |
| | in pipelines: 04(GETNEXT) |
| | |
| 10: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,1N,4,5,2 row-size=115B cardinality=286.13K |
| | in pipelines: 01(GETNEXT), 03(OPEN) |
| | |
| |--03: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=2 row-size=26B cardinality=7.30K |
| | in pipelines: 03(GETNEXT) |
| | |
| 09:HASH JOIN [INNER JOIN] |
| | hash predicates: ss_promo_sk = p_promo_sk |
| | fk/pk conjuncts: ss_promo_sk = p_promo_sk |
| | runtime filters: RF004[bloom] <- p_promo_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,1N,4,5 row-size=89B cardinality=286.13K |
| | in pipelines: 01(GETNEXT), 06(OPEN) |
| | |
| |--06:SCAN HDFS [tpcds_parquet.promotion] |
| | HDFS partitions=1/1 files=1 size=23.30KB |
| | predicates: p_channel_tv = 'N' |
| | stored statistics: |
| | table: rows=300 size=23.30KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=300 |
| | parquet statistics predicates: p_channel_tv = 'N' |
| | parquet dictionary predicates: p_channel_tv = 'N' |
| | mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=1 |
| | tuple-ids=5 row-size=17B cardinality=300 |
| | in pipelines: 06(GETNEXT) |
| | |
| 08:HASH JOIN [INNER JOIN] |
| | hash predicates: ss_item_sk = i_item_sk |
| | fk/pk conjuncts: ss_item_sk = i_item_sk |
| | runtime filters: RF006[bloom] <- i_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,1N,4 row-size=72B cardinality=288.04K |
| | in pipelines: 01(GETNEXT), 05(OPEN) |
| | |
| |--05:SCAN HDFS [tpcds_parquet.item] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | parquet statistics predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | parquet dictionary predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=4 row-size=12B cardinality=1.80K |
| | in pipelines: 05(GETNEXT) |
| | |
| 07:HASH JOIN [LEFT OUTER JOIN] |
| | hash predicates: ss_item_sk = sr_item_sk, ss_ticket_number = sr_ticket_number |
| | fk/pk conjuncts: ss_item_sk = sr_item_sk, ss_ticket_number = sr_ticket_number |
| | mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=0,1N row-size=60B cardinality=2.88M |
| | in pipelines: 01(GETNEXT), 02(OPEN) |
| | |
| |--02:SCAN HDFS [tpcds_parquet.store_returns] |
| | HDFS partitions=1/1 files=1 size=15.43MB |
| | runtime filters: RF006[bloom] -> tpcds_parquet.store_returns.sr_item_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=8.00MB thread-reservation=1 |
| | tuple-ids=1 row-size=24B cardinality=287.51K |
| | in pipelines: 02(GETNEXT) |
| | |
| 01:SCAN HDFS [tpcds_parquet.store_sales] |
| HDFS partitions=1824/1824 files=1824 size=200.95MB |
| runtime filters: RF006[bloom] -> ss_item_sk, RF004[bloom] -> ss_promo_sk, RF000[bloom] -> ss_store_sk, RF002[bloom] -> ss_sold_date_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=96.00MB mem-reservation=4.00MB thread-reservation=1 |
| tuple-ids=0 row-size=36B cardinality=2.88M |
| in pipelines: 01(GETNEXT) |
| ---- DISTRIBUTEDPLAN |
| Max Per-Host Resource Reservation: Memory=130.12MB Threads=39 |
| Per-Host Resource Estimates: Memory=1.44GB |
| F23:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=24.61KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: CASE valid_tid(26,27,28) WHEN 26 THEN channel WHEN 27 THEN channel WHEN 28 THEN NULL END, CASE valid_tid(26,27,28) WHEN 26 THEN id WHEN 27 THEN NULL WHEN 28 THEN NULL END, aggif(valid_tid(26,27,28) IN (26, 27, 28), CASE valid_tid(26,27,28) WHEN 26 THEN sum(sales) WHEN 27 THEN sum(sales) WHEN 28 THEN sum(sales) END), aggif(valid_tid(26,27,28) IN (26, 27, 28), CASE valid_tid(26,27,28) WHEN 26 THEN sum(`returns`) WHEN 27 THEN sum(`returns`) WHEN 28 THEN sum(`returns`) END), aggif(valid_tid(26,27,28) IN (26, 27, 28), CASE valid_tid(26,27,28) WHEN 26 THEN sum(profit) WHEN 27 THEN sum(profit) WHEN 28 THEN sum(profit) END) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 63:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: CASE valid_tid(26,27,28) WHEN 26 THEN channel WHEN 27 THEN channel WHEN 28 THEN NULL END ASC, CASE valid_tid(26,27,28) WHEN 26 THEN id WHEN 27 THEN NULL WHEN 28 THEN NULL END ASC |
| | limit: 100 |
| | mem-estimate=24.61KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=30 row-size=72B cardinality=100 |
| | in pipelines: 39(GETNEXT) |
| | |
| F22:PLAN FRAGMENT [HASH(CASE valid_tid(26,27,28) WHEN 26 THEN murmur_hash(channel) WHEN 27 THEN murmur_hash(channel) WHEN 28 THEN murmur_hash(NULL) END,CASE valid_tid(26,27,28) WHEN 26 THEN murmur_hash(id) WHEN 27 THEN murmur_hash(NULL) WHEN 28 THEN murmur_hash(NULL) END)] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=40.00MB mem-reservation=8.69MB thread-reservation=1 |
| 39:TOP-N [LIMIT=100] |
| | order by: CASE valid_tid(26,27,28) WHEN 26 THEN channel WHEN 27 THEN channel WHEN 28 THEN NULL END ASC, CASE valid_tid(26,27,28) WHEN 26 THEN id WHEN 27 THEN NULL WHEN 28 THEN NULL END ASC |
| | mem-estimate=7.03KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=30 row-size=72B cardinality=100 |
| | in pipelines: 39(GETNEXT), 38(OPEN) |
| | |
| 38:AGGREGATE [FINALIZE] |
| | output: aggif(valid_tid(26,27,28) IN (CAST(26 AS INT), CAST(27 AS INT), CAST(28 AS INT)), CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN sum(sales) WHEN CAST(27 AS INT) THEN sum(sales) WHEN CAST(28 AS INT) THEN sum(sales) END), aggif(valid_tid(26,27,28) IN (CAST(26 AS INT), CAST(27 AS INT), CAST(28 AS INT)), CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN sum(`returns`) WHEN CAST(27 AS INT) THEN sum(`returns`) WHEN CAST(28 AS INT) THEN sum(`returns`) END), aggif(valid_tid(26,27,28) IN (CAST(26 AS INT), CAST(27 AS INT), CAST(28 AS INT)), CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN sum(profit) WHEN CAST(27 AS INT) THEN sum(profit) WHEN CAST(28 AS INT) THEN sum(profit) END) |
| | group by: CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN channel WHEN CAST(27 AS INT) THEN channel WHEN CAST(28 AS INT) THEN NULL END, CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN id WHEN CAST(27 AS INT) THEN NULL WHEN CAST(28 AS INT) THEN NULL END, CASE valid_tid(26,27,28) WHEN CAST(26 AS INT) THEN CAST(26 AS INT) WHEN CAST(27 AS INT) THEN CAST(27 AS INT) WHEN CAST(28 AS INT) THEN CAST(28 AS INT) END |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=29 row-size=76B cardinality=11.56K |
| | in pipelines: 38(GETNEXT), 62(OPEN) |
| | |
| 62: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=6.75MB thread-reservation=0 |
| | tuple-ids=26N,27N,28N row-size=216B cardinality=11.56K |
| | in pipelines: 62(GETNEXT), 46(OPEN), 53(OPEN), 60(OPEN) |
| | |
| 61:EXCHANGE [HASH(CASE valid_tid(26,27,28) WHEN 26 THEN murmur_hash(channel) WHEN 27 THEN murmur_hash(channel) WHEN 28 THEN murmur_hash(NULL) END,CASE valid_tid(26,27,28) WHEN 26 THEN murmur_hash(id) WHEN 27 THEN murmur_hash(NULL) WHEN 28 THEN murmur_hash(NULL) END)] |
| | mem-estimate=1.46MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=26N,27N,28N row-size=216B cardinality=11.56K |
| | in pipelines: 46(GETNEXT), 53(GETNEXT), 60(GETNEXT) |
| | |
| F21:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=40.51MB mem-reservation=8.94MB thread-reservation=1 |
| 37: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=7.00MB thread-reservation=0 |
| | tuple-ids=26N,27N,28N row-size=216B cardinality=11.56K |
| | in pipelines: 46(GETNEXT), 53(GETNEXT), 60(GETNEXT) |
| | |
| 00:UNION |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | tuple-ids=24 row-size=72B cardinality=11.56K |
| | in pipelines: 46(GETNEXT), 53(GETNEXT), 60(GETNEXT) |
| | |
| |--60:AGGREGATE [FINALIZE] |
| | | output: sum:merge(ws_ext_sales_price), sum:merge(coalesce(wr_return_amt, 0)), sum:merge(ws_net_profit - coalesce(wr_net_loss, 0)) |
| | | group by: web_site_id |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=22 row-size=76B cardinality=15 |
| | | in pipelines: 60(GETNEXT), 25(OPEN) |
| | | |
| | 59:EXCHANGE [HASH(web_site_id)] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=22 row-size=76B cardinality=15 |
| | | in pipelines: 25(GETNEXT) |
| | | |
| | F14:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | Per-Host Resources: mem-estimate=248.57MB mem-reservation=30.62MB thread-reservation=2 runtime-filters-memory=2.00MB |
| | 36:AGGREGATE [STREAMING] |
| | | output: sum(ws_ext_sales_price), sum(coalesce(wr_return_amt, CAST(0 AS DECIMAL(7,2)))), sum(ws_net_profit - coalesce(wr_net_loss, CAST(0 AS DECIMAL(7,2)))) |
| | | group by: web_site_id |
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=22 row-size=76B cardinality=15 |
| | | in pipelines: 25(GETNEXT) |
| | | |
| | 35:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash predicates: ws_web_site_sk = web_site_sk |
| | | fk/pk conjuncts: ws_web_site_sk = web_site_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20,21,18,19 row-size=147B cardinality=71.46K |
| | | in pipelines: 25(GETNEXT), 28(OPEN) |
| | | |
| | |--58:EXCHANGE [BROADCAST] |
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=19 row-size=32B cardinality=30 |
| | | | in pipelines: 28(GETNEXT) |
| | | | |
| | | F19:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2 |
| | | 28:SCAN HDFS [tpcds_parquet.web_site, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=11.91KB |
| | | stored statistics: |
| | | table: rows=30 size=11.91KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=30 |
| | | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | | tuple-ids=19 row-size=32B cardinality=30 |
| | | in pipelines: 28(GETNEXT) |
| | | |
| | 34:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash predicates: ws_sold_date_sk = d_date_sk |
| | | fk/pk conjuncts: ws_sold_date_sk = d_date_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20,21,18 row-size=115B cardinality=71.46K |
| | | in pipelines: 25(GETNEXT), 27(OPEN) |
| | | |
| | |--57:EXCHANGE [BROADCAST] |
| | | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=18 row-size=26B cardinality=7.30K |
| | | | in pipelines: 27(GETNEXT) |
| | | | |
| | | F18:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2 |
| | | 27: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=18 row-size=26B cardinality=7.30K |
| | | in pipelines: 27(GETNEXT) |
| | | |
| | 33:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash predicates: ws_promo_sk = p_promo_sk |
| | | fk/pk conjuncts: ws_promo_sk = p_promo_sk |
| | | runtime filters: RF020[bloom] <- p_promo_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20,21 row-size=89B cardinality=71.46K |
| | | in pipelines: 25(GETNEXT), 30(OPEN) |
| | | |
| | |--56:EXCHANGE [BROADCAST] |
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=21 row-size=17B cardinality=300 |
| | | | in pipelines: 30(GETNEXT) |
| | | | |
| | | F17:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=2 |
| | | 30:SCAN HDFS [tpcds_parquet.promotion, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=23.30KB |
| | | predicates: p_channel_tv = 'N' |
| | | stored statistics: |
| | | table: rows=300 size=23.30KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=300 |
| | | parquet statistics predicates: p_channel_tv = 'N' |
| | | parquet dictionary predicates: p_channel_tv = 'N' |
| | | mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=1 |
| | | tuple-ids=21 row-size=17B cardinality=300 |
| | | in pipelines: 30(GETNEXT) |
| | | |
| | 32:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash predicates: ws_item_sk = i_item_sk |
| | | fk/pk conjuncts: ws_item_sk = i_item_sk |
| | | runtime filters: RF022[bloom] <- i_item_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=16,17N,20 row-size=72B cardinality=71.94K |
| | | in pipelines: 25(GETNEXT), 29(OPEN) |
| | | |
| | |--55:EXCHANGE [BROADCAST] |
| | | | mem-estimate=37.09KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=20 row-size=12B cardinality=1.80K |
| | | | in pipelines: 29(GETNEXT) |
| | | | |
| | | F16:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2 |
| | | 29:SCAN HDFS [tpcds_parquet.item, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=1.73MB |
| | | predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | stored statistics: |
| | | table: rows=18.00K size=1.73MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | | parquet statistics predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | parquet dictionary predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | | tuple-ids=20 row-size=12B cardinality=1.80K |
| | | in pipelines: 29(GETNEXT) |
| | | |
| | 31:HASH JOIN [LEFT OUTER JOIN, BROADCAST] |
| | | hash predicates: ws_item_sk = wr_item_sk, ws_order_number = wr_order_number |
| | | fk/pk conjuncts: ws_item_sk = wr_item_sk, ws_order_number = wr_order_number |
| | | mem-estimate=2.88MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0 |
| | | tuple-ids=16,17N row-size=60B cardinality=719.38K |
| | | in pipelines: 25(GETNEXT), 26(OPEN) |
| | | |
| | |--54:EXCHANGE [BROADCAST] |
| | | | mem-estimate=1.67MB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=17 row-size=24B cardinality=71.76K |
| | | | in pipelines: 26(GETNEXT) |
| | | | |
| | | F15:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=65.00MB mem-reservation=3.00MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | | 26:SCAN HDFS [tpcds_parquet.web_returns, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=5.66MB |
| | | runtime filters: RF022[bloom] -> tpcds_parquet.web_returns.wr_item_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=2.00MB thread-reservation=1 |
| | | tuple-ids=17 row-size=24B cardinality=71.76K |
| | | in pipelines: 26(GETNEXT) |
| | | |
| | 25:SCAN HDFS [tpcds_parquet.web_sales, RANDOM] |
| | HDFS partitions=1/1 files=2 size=45.09MB |
| | runtime filters: RF022[bloom] -> ws_item_sk, RF020[bloom] -> ws_promo_sk |
| | stored statistics: |
| | table: rows=719.38K size=45.09MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=644.77K |
| | mem-estimate=224.00MB mem-reservation=16.00MB thread-reservation=1 |
| | tuple-ids=16 row-size=36B cardinality=719.38K |
| | in pipelines: 25(GETNEXT) |
| | |
| |--53:AGGREGATE [FINALIZE] |
| | | output: sum:merge(cs_ext_sales_price), sum:merge(coalesce(cr_return_amount, 0)), sum:merge(cs_net_profit - coalesce(cr_net_loss, 0)) |
| | | group by: cp_catalog_page_id |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=14 row-size=76B cardinality=11.54K |
| | | in pipelines: 53(GETNEXT), 13(OPEN) |
| | | |
| | 52:EXCHANGE [HASH(cp_catalog_page_id)] |
| | | mem-estimate=525.47KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=14 row-size=76B cardinality=11.54K |
| | | in pipelines: 13(GETNEXT) |
| | | |
| | F07:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | Per-Host Resources: mem-estimate=366.48MB mem-reservation=34.50MB thread-reservation=2 runtime-filters-memory=4.00MB |
| | 24:AGGREGATE [STREAMING] |
| | | output: sum(cs_ext_sales_price), sum(coalesce(cr_return_amount, CAST(0 AS DECIMAL(7,2)))), sum(cs_net_profit - coalesce(cr_net_loss, CAST(0 AS DECIMAL(7,2)))) |
| | | group by: cp_catalog_page_id |
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=14 row-size=76B cardinality=11.54K |
| | | in pipelines: 13(GETNEXT) |
| | | |
| | 23:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash predicates: cs_catalog_page_sk = cp_catalog_page_sk |
| | | fk/pk conjuncts: cs_catalog_page_sk = cp_catalog_page_sk |
| | | runtime filters: RF008[bloom] <- cp_catalog_page_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8,9N,12,13,10,11 row-size=147B cardinality=143.20K |
| | | in pipelines: 13(GETNEXT), 16(OPEN) |
| | | |
| | |--51:EXCHANGE [BROADCAST] |
| | | | mem-estimate=402.19KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=11 row-size=32B cardinality=11.72K |
| | | | in pipelines: 16(GETNEXT) |
| | | | |
| | | F12:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2 |
| | | 16:SCAN HDFS [tpcds_parquet.catalog_page, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=739.17KB |
| | | stored statistics: |
| | | table: rows=11.72K size=739.17KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=11.72K |
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | | tuple-ids=11 row-size=32B cardinality=11.72K |
| | | in pipelines: 16(GETNEXT) |
| | | |
| | 22: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=8,9N,12,13,10 row-size=115B cardinality=143.20K |
| | | in pipelines: 13(GETNEXT), 15(OPEN) |
| | | |
| | |--50:EXCHANGE [BROADCAST] |
| | | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=10 row-size=26B cardinality=7.30K |
| | | | in pipelines: 15(GETNEXT) |
| | | | |
| | | F11: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=10 row-size=26B cardinality=7.30K |
| | | in pipelines: 15(GETNEXT) |
| | | |
| | 21:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash predicates: cs_promo_sk = p_promo_sk |
| | | fk/pk conjuncts: cs_promo_sk = p_promo_sk |
| | | runtime filters: RF012[bloom] <- p_promo_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8,9N,12,13 row-size=89B cardinality=143.20K |
| | | in pipelines: 13(GETNEXT), 18(OPEN) |
| | | |
| | |--49:EXCHANGE [BROADCAST] |
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=13 row-size=17B cardinality=300 |
| | | | in pipelines: 18(GETNEXT) |
| | | | |
| | | F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=2 |
| | | 18:SCAN HDFS [tpcds_parquet.promotion, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=23.30KB |
| | | predicates: p_channel_tv = 'N' |
| | | stored statistics: |
| | | table: rows=300 size=23.30KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=300 |
| | | parquet statistics predicates: p_channel_tv = 'N' |
| | | parquet dictionary predicates: p_channel_tv = 'N' |
| | | mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=1 |
| | | tuple-ids=13 row-size=17B cardinality=300 |
| | | in pipelines: 18(GETNEXT) |
| | | |
| | 20: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=8,9N,12 row-size=72B cardinality=144.16K |
| | | in pipelines: 13(GETNEXT), 17(OPEN) |
| | | |
| | |--48:EXCHANGE [BROADCAST] |
| | | | mem-estimate=37.09KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=12 row-size=12B cardinality=1.80K |
| | | | in pipelines: 17(GETNEXT) |
| | | | |
| | | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2 |
| | | 17:SCAN HDFS [tpcds_parquet.item, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=1.73MB |
| | | predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | stored statistics: |
| | | table: rows=18.00K size=1.73MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | | parquet statistics predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | parquet dictionary predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | | tuple-ids=12 row-size=12B cardinality=1.80K |
| | | in pipelines: 17(GETNEXT) |
| | | |
| | 19:HASH JOIN [LEFT OUTER JOIN, BROADCAST] |
| | | hash predicates: cs_item_sk = cr_item_sk, cs_order_number = cr_order_number |
| | | fk/pk conjuncts: cs_item_sk = cr_item_sk, cs_order_number = cr_order_number |
| | | mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0 |
| | | tuple-ids=8,9N row-size=60B cardinality=1.44M |
| | | in pipelines: 13(GETNEXT), 14(OPEN) |
| | | |
| | |--47:EXCHANGE [BROADCAST] |
| | | | mem-estimate=3.32MB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=9 row-size=24B cardinality=144.07K |
| | | | in pipelines: 14(GETNEXT) |
| | | | |
| | | F08:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=97.00MB mem-reservation=5.00MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | | 14:SCAN HDFS [tpcds_parquet.catalog_returns, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=10.62MB |
| | | runtime filters: RF014[bloom] -> tpcds_parquet.catalog_returns.cr_item_sk |
| | | stored statistics: |
| | | table: rows=144.07K size=10.62MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=144.07K |
| | | mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1 |
| | | tuple-ids=9 row-size=24B cardinality=144.07K |
| | | in pipelines: 14(GETNEXT) |
| | | |
| | 13:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM] |
| | HDFS partitions=1/1 files=3 size=96.62MB |
| | runtime filters: RF014[bloom] -> cs_item_sk, RF012[bloom] -> cs_promo_sk, RF008[bloom] -> cs_catalog_page_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=336.00MB mem-reservation=16.00MB thread-reservation=1 |
| | tuple-ids=8 row-size=36B cardinality=1.44M |
| | in pipelines: 13(GETNEXT) |
| | |
| 46:AGGREGATE [FINALIZE] |
| | output: sum:merge(ss_ext_sales_price), sum:merge(coalesce(sr_return_amt, 0)), sum:merge(ss_net_profit - coalesce(sr_net_loss, 0)) |
| | group by: s_store_id |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=6 row-size=76B cardinality=6 |
| | in pipelines: 46(GETNEXT), 01(OPEN) |
| | |
| 45:EXCHANGE [HASH(s_store_id)] |
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=6 row-size=76B cardinality=6 |
| | in pipelines: 01(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=133.14MB mem-reservation=26.25MB thread-reservation=2 runtime-filters-memory=4.00MB |
| 12:AGGREGATE [STREAMING] |
| | output: sum(ss_ext_sales_price), sum(coalesce(sr_return_amt, CAST(0 AS DECIMAL(7,2)))), sum(ss_net_profit - coalesce(sr_net_loss, CAST(0 AS DECIMAL(7,2)))) |
| | group by: s_store_id |
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=6 row-size=76B cardinality=6 |
| | in pipelines: 01(GETNEXT) |
| | |
| 11: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,1N,4,5,2,3 row-size=147B cardinality=286.13K |
| | in pipelines: 01(GETNEXT), 04(OPEN) |
| | |
| |--44:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=32B cardinality=12 |
| | | in pipelines: 04(GETNEXT) |
| | | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2 |
| | 04:SCAN HDFS [tpcds_parquet.store, RANDOM] |
| | HDFS partitions=1/1 files=1 size=9.93KB |
| | stored statistics: |
| | table: rows=12 size=9.93KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=12 |
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | tuple-ids=3 row-size=32B cardinality=12 |
| | in pipelines: 04(GETNEXT) |
| | |
| 10: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,1N,4,5,2 row-size=115B cardinality=286.13K |
| | in pipelines: 01(GETNEXT), 03(OPEN) |
| | |
| |--43:EXCHANGE [BROADCAST] |
| | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=26B cardinality=7.30K |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2 |
| | 03: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=2 row-size=26B cardinality=7.30K |
| | in pipelines: 03(GETNEXT) |
| | |
| 09:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: ss_promo_sk = p_promo_sk |
| | fk/pk conjuncts: ss_promo_sk = p_promo_sk |
| | runtime filters: RF004[bloom] <- p_promo_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,1N,4,5 row-size=89B cardinality=286.13K |
| | in pipelines: 01(GETNEXT), 06(OPEN) |
| | |
| |--42:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=5 row-size=17B cardinality=300 |
| | | in pipelines: 06(GETNEXT) |
| | | |
| | F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=2 |
| | 06:SCAN HDFS [tpcds_parquet.promotion, RANDOM] |
| | HDFS partitions=1/1 files=1 size=23.30KB |
| | predicates: p_channel_tv = 'N' |
| | stored statistics: |
| | table: rows=300 size=23.30KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=300 |
| | parquet statistics predicates: p_channel_tv = 'N' |
| | parquet dictionary predicates: p_channel_tv = 'N' |
| | mem-estimate=32.00MB mem-reservation=32.00KB thread-reservation=1 |
| | tuple-ids=5 row-size=17B cardinality=300 |
| | in pipelines: 06(GETNEXT) |
| | |
| 08:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: ss_item_sk = i_item_sk |
| | fk/pk conjuncts: ss_item_sk = i_item_sk |
| | runtime filters: RF006[bloom] <- i_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,1N,4 row-size=72B cardinality=288.04K |
| | in pipelines: 01(GETNEXT), 05(OPEN) |
| | |
| |--41:EXCHANGE [BROADCAST] |
| | | mem-estimate=37.09KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=4 row-size=12B cardinality=1.80K |
| | | in pipelines: 05(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2 |
| | 05:SCAN HDFS [tpcds_parquet.item, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | parquet statistics predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | parquet dictionary predicates: i_current_price > CAST(50 AS DECIMAL(3,0)) |
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=4 row-size=12B cardinality=1.80K |
| | in pipelines: 05(GETNEXT) |
| | |
| 07:HASH JOIN [LEFT OUTER JOIN, BROADCAST] |
| | hash predicates: ss_item_sk = sr_item_sk, ss_ticket_number = sr_ticket_number |
| | fk/pk conjuncts: ss_item_sk = sr_item_sk, ss_ticket_number = sr_ticket_number |
| | mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=0,1N row-size=60B cardinality=2.88M |
| | in pipelines: 01(GETNEXT), 02(OPEN) |
| | |
| |--40:EXCHANGE [BROADCAST] |
| | | mem-estimate=6.61MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=24B cardinality=287.51K |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=97.00MB mem-reservation=9.00MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | 02:SCAN HDFS [tpcds_parquet.store_returns, RANDOM] |
| | HDFS partitions=1/1 files=1 size=15.43MB |
| | runtime filters: RF006[bloom] -> tpcds_parquet.store_returns.sr_item_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=8.00MB thread-reservation=1 |
| | tuple-ids=1 row-size=24B cardinality=287.51K |
| | in pipelines: 02(GETNEXT) |
| | |
| 01:SCAN HDFS [tpcds_parquet.store_sales, RANDOM] |
| HDFS partitions=1824/1824 files=1824 size=200.95MB |
| runtime filters: RF006[bloom] -> ss_item_sk, RF004[bloom] -> ss_promo_sk, RF000[bloom] -> ss_store_sk, RF002[bloom] -> ss_sold_date_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=96.00MB mem-reservation=4.00MB thread-reservation=1 |
| tuple-ids=0 row-size=36B cardinality=2.88M |
| in pipelines: 01(GETNEXT) |
| ==== |