| # TPCDS-Q78 |
| WITH ws AS |
| (SELECT d_year AS ws_sold_year, |
| ws_item_sk, |
| ws_bill_customer_sk ws_customer_sk, |
| sum(ws_quantity) ws_qty, |
| sum(ws_wholesale_cost) ws_wc, |
| sum(ws_sales_price) ws_sp |
| FROM web_sales |
| LEFT JOIN web_returns ON wr_order_number=ws_order_number |
| AND ws_item_sk=wr_item_sk |
| JOIN date_dim ON ws_sold_date_sk = d_date_sk |
| WHERE wr_order_number IS NULL |
| GROUP BY d_year, |
| ws_item_sk, |
| ws_bill_customer_sk ), |
| cs AS |
| (SELECT d_year AS cs_sold_year, |
| cs_item_sk, |
| cs_bill_customer_sk cs_customer_sk, |
| sum(cs_quantity) cs_qty, |
| sum(cs_wholesale_cost) cs_wc, |
| sum(cs_sales_price) cs_sp |
| FROM catalog_sales |
| LEFT JOIN catalog_returns ON cr_order_number=cs_order_number |
| AND cs_item_sk=cr_item_sk |
| JOIN date_dim ON cs_sold_date_sk = d_date_sk |
| WHERE cr_order_number IS NULL |
| GROUP BY d_year, |
| cs_item_sk, |
| cs_bill_customer_sk ), |
| ss AS |
| (SELECT d_year AS ss_sold_year, |
| ss_item_sk, |
| ss_customer_sk, |
| sum(ss_quantity) ss_qty, |
| sum(ss_wholesale_cost) ss_wc, |
| sum(ss_sales_price) ss_sp |
| FROM store_sales |
| LEFT JOIN store_returns ON sr_ticket_number=ss_ticket_number |
| AND ss_item_sk=sr_item_sk |
| JOIN date_dim ON ss_sold_date_sk = d_date_sk |
| WHERE sr_ticket_number IS NULL |
| GROUP BY d_year, |
| ss_item_sk, |
| ss_customer_sk ) |
| SELECT ss_sold_year, |
| ss_item_sk, |
| ss_customer_sk, |
| round((ss_qty*1.00)/(coalesce(ws_qty,0)+coalesce(cs_qty,0)),2) ratio, |
| ss_qty store_qty, |
| ss_wc store_wholesale_cost, |
| ss_sp store_sales_price, |
| coalesce(ws_qty,0)+coalesce(cs_qty,0) other_chan_qty, |
| coalesce(ws_wc,0)+coalesce(cs_wc,0) other_chan_wholesale_cost, |
| coalesce(ws_sp,0)+coalesce(cs_sp,0) other_chan_sales_price |
| FROM ss |
| LEFT JOIN ws ON (ws_sold_year=ss_sold_year |
| AND ws_item_sk=ss_item_sk |
| AND ws_customer_sk=ss_customer_sk) |
| LEFT JOIN cs ON (cs_sold_year=ss_sold_year |
| AND cs_item_sk=ss_item_sk |
| AND cs_customer_sk=ss_customer_sk) |
| WHERE (coalesce(ws_qty,0)>0 |
| OR coalesce(cs_qty, 0)>0) |
| AND ss_sold_year=2000 |
| ORDER BY ss_sold_year, |
| ss_item_sk, |
| ss_customer_sk, |
| ss_qty DESC, |
| ss_wc DESC, |
| ss_sp DESC, |
| other_chan_qty, |
| other_chan_wholesale_cost, |
| other_chan_sales_price, |
| ratio |
| LIMIT 100; |
| |
| ---- PLAN |
| Max Per-Host Resource Reservation: Memory=126.44MB Threads=10 |
| Per-Host Resource Estimates: Memory=911MB |
| F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=910.94MB mem-reservation=126.44MB thread-reservation=10 runtime-filters-memory=9.00MB |
| PLAN-ROOT SINK |
| | output exprs: ss_sold_year, ss_item_sk, ss_customer_sk, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2), ss_qty, ss_wc, ss_sp, coalesce(ws_qty, 0) + coalesce(cs_qty, 0), coalesce(ws_wc, 0) + coalesce(cs_wc, 0), coalesce(ws_sp, 0) + coalesce(cs_sp, 0) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 20:TOP-N [LIMIT=100] |
| | order by: ss_sold_year ASC, ss_item_sk ASC, ss_customer_sk ASC, ss_qty DESC, ss_wc DESC, ss_sp DESC, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) ASC, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) ASC, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) ASC, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) ASC |
| | materialized: coalesce(ws_qty, 0) + coalesce(cs_qty, 0), coalesce(ws_wc, 0) + coalesce(cs_wc, 0), coalesce(ws_sp, 0) + coalesce(cs_sp, 0), round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) |
| | mem-estimate=10.94KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=15 row-size=112B cardinality=100 |
| | in pipelines: 20(GETNEXT), 17(OPEN) |
| | |
| 19:HASH JOIN [RIGHT OUTER JOIN] |
| | hash predicates: d_year = d_year, cs_bill_customer_sk = ss_customer_sk, cs_item_sk = ss_item_sk |
| | fk/pk conjuncts: cs_bill_customer_sk = ss_customer_sk, cs_item_sk = ss_item_sk |
| | other predicates: (coalesce(sum(ws_quantity), CAST(0 AS BIGINT)) > CAST(0 AS BIGINT) OR coalesce(sum(cs_quantity), CAST(0 AS BIGINT)) > CAST(0 AS BIGINT)) |
| | runtime filters: RF000[bloom] <- d_year, RF001[bloom] <- ss_customer_sk, RF002[bloom] <- ss_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=13N,8N,3 row-size=168B cardinality=3.00K |
| | in pipelines: 17(GETNEXT), 11(OPEN) |
| | |
| |--18:HASH JOIN [RIGHT OUTER JOIN] |
| | | hash predicates: d_year = d_year, ws_bill_customer_sk = ss_customer_sk, ws_item_sk = ss_item_sk |
| | | fk/pk conjuncts: ws_bill_customer_sk = ss_customer_sk, ws_item_sk = ss_item_sk |
| | | runtime filters: RF008[bloom] <- d_year, RF009[bloom] <- ss_customer_sk, RF010[bloom] <- ss_item_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8N,3 row-size=112B cardinality=3.00K |
| | | in pipelines: 11(GETNEXT), 05(OPEN) |
| | | |
| | |--05:AGGREGATE [FINALIZE] |
| | | | output: sum(CAST(ss_quantity AS BIGINT)), sum(ss_wholesale_cost), sum(ss_sales_price) |
| | | | group by: d_year, ss_item_sk, ss_customer_sk |
| | | | having: d_year = CAST(2000 AS INT) |
| | | | mem-estimate=34.60MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=3.00K |
| | | | in pipelines: 05(GETNEXT), 00(OPEN) |
| | | | |
| | | 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: RF016[bloom] <- d_date_sk |
| | | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | | tuple-ids=0,1N,2 row-size=60B cardinality=589.03K |
| | | | in pipelines: 00(GETNEXT), 02(OPEN) |
| | | | |
| | | |--02:SCAN HDFS [tpcds_parquet.date_dim] |
| | | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | stored statistics: |
| | | | table: rows=73.05K size=2.15MB |
| | | | columns: all |
| | | | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | | | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | | tuple-ids=2 row-size=8B cardinality=373 |
| | | | in pipelines: 02(GETNEXT) |
| | | | |
| | | 03: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 |
| | | | other predicates: sr_ticket_number IS NULL |
| | | | mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | | tuple-ids=0,1N row-size=52B cardinality=2.88M |
| | | | in pipelines: 00(GETNEXT), 01(OPEN) |
| | | | |
| | | |--01:SCAN HDFS [tpcds_parquet.store_returns] |
| | | | HDFS partitions=1/1 files=1 size=15.43MB |
| | | | stored statistics: |
| | | | table: rows=287.51K size=15.43MB |
| | | | columns: all |
| | | | extrapolated-rows=disabled max-scan-range-rows=287.51K |
| | | | mem-estimate=48.00MB mem-reservation=4.00MB thread-reservation=1 |
| | | | tuple-ids=1 row-size=16B cardinality=287.51K |
| | | | in pipelines: 01(GETNEXT) |
| | | | |
| | | 00:SCAN HDFS [tpcds_parquet.store_sales] |
| | | HDFS partitions=1824/1824 files=1824 size=200.95MB |
| | | runtime filters: RF016[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: 00(GETNEXT) |
| | | |
| | 11:AGGREGATE [FINALIZE] |
| | | output: sum(CAST(ws_quantity AS BIGINT)), sum(ws_wholesale_cost), sum(ws_sales_price) |
| | | group by: d_year, ws_item_sk, ws_bill_customer_sk |
| | | mem-estimate=10.00MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 11(GETNEXT), 06(OPEN) |
| | | |
| | 10: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=5,6N,7 row-size=60B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT), 08(OPEN) |
| | | |
| | |--08:SCAN HDFS [tpcds_parquet.date_dim] |
| | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | runtime filters: RF008[bloom] -> tpcds_parquet.date_dim.d_year |
| | | stored statistics: |
| | | table: rows=73.05K size=2.15MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | tuple-ids=7 row-size=8B cardinality=373 |
| | | in pipelines: 08(GETNEXT) |
| | | |
| | 09: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 |
| | | other predicates: wr_order_number IS NULL |
| | | mem-estimate=2.88MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0 |
| | | tuple-ids=5,6N row-size=52B cardinality=719.38K |
| | | in pipelines: 06(GETNEXT), 07(OPEN) |
| | | |
| | |--07:SCAN HDFS [tpcds_parquet.web_returns] |
| | | HDFS partitions=1/1 files=1 size=5.66MB |
| | | runtime filters: RF010[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=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| | | tuple-ids=6 row-size=16B cardinality=71.76K |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | 06:SCAN HDFS [tpcds_parquet.web_sales] |
| | HDFS partitions=1/1 files=2 size=45.09MB |
| | runtime filters: RF009[bloom] -> tpcds_parquet.web_sales.ws_bill_customer_sk, RF010[bloom] -> tpcds_parquet.web_sales.ws_item_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=224.00MB mem-reservation=16.00MB thread-reservation=1 |
| | tuple-ids=5 row-size=36B cardinality=719.38K |
| | in pipelines: 06(GETNEXT) |
| | |
| 17:AGGREGATE [FINALIZE] |
| | output: sum(CAST(cs_quantity AS BIGINT)), sum(cs_wholesale_cost), sum(cs_sales_price) |
| | group by: d_year, cs_item_sk, cs_bill_customer_sk |
| | mem-estimate=17.31MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 17(GETNEXT), 12(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: RF006[bloom] <- d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=10,11N,12 row-size=60B cardinality=294.63K |
| | in pipelines: 12(GETNEXT), 14(OPEN) |
| | |
| |--14:SCAN HDFS [tpcds_parquet.date_dim] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | runtime filters: RF000[bloom] -> tpcds_parquet.date_dim.d_year |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=12 row-size=8B cardinality=373 |
| | in pipelines: 14(GETNEXT) |
| | |
| 15: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 |
| | other predicates: cr_order_number IS NULL |
| | mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0 |
| | tuple-ids=10,11N row-size=52B cardinality=1.44M |
| | in pipelines: 12(GETNEXT), 13(OPEN) |
| | |
| |--13:SCAN HDFS [tpcds_parquet.catalog_returns] |
| | HDFS partitions=1/1 files=1 size=10.62MB |
| | runtime filters: RF002[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=48.00MB mem-reservation=2.00MB thread-reservation=1 |
| | tuple-ids=11 row-size=16B cardinality=144.07K |
| | in pipelines: 13(GETNEXT) |
| | |
| 12:SCAN HDFS [tpcds_parquet.catalog_sales] |
| HDFS partitions=1/1 files=3 size=96.62MB |
| runtime filters: RF001[bloom] -> tpcds_parquet.catalog_sales.cs_bill_customer_sk, RF002[bloom] -> tpcds_parquet.catalog_sales.cs_item_sk, RF006[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=10 row-size=36B cardinality=1.44M |
| in pipelines: 12(GETNEXT) |
| ---- DISTRIBUTEDPLAN |
| Max Per-Host Resource Reservation: Memory=156.31MB Threads=22 |
| Per-Host Resource Estimates: Memory=1.00GB |
| F12:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=37.63KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: ss_sold_year, ss_item_sk, ss_customer_sk, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2), ss_qty, ss_wc, ss_sp, coalesce(ws_qty, 0) + coalesce(cs_qty, 0), coalesce(ws_wc, 0) + coalesce(cs_wc, 0), coalesce(ws_sp, 0) + coalesce(cs_sp, 0) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 35:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: ss_sold_year ASC, ss_item_sk ASC, ss_customer_sk ASC, ss_qty DESC, ss_wc DESC, ss_sp DESC, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) ASC, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) ASC, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) ASC, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) ASC |
| | limit: 100 |
| | mem-estimate=37.63KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=15 row-size=112B cardinality=100 |
| | in pipelines: 20(GETNEXT) |
| | |
| F03:PLAN FRAGMENT [HASH(d_year,cs_item_sk,cs_bill_customer_sk)] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=20.75MB mem-reservation=13.44MB thread-reservation=1 runtime-filters-memory=3.00MB |
| 20:TOP-N [LIMIT=100] |
| | order by: ss_sold_year ASC, ss_item_sk ASC, ss_customer_sk ASC, ss_qty DESC, ss_wc DESC, ss_sp DESC, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) ASC, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) ASC, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) ASC, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) ASC |
| | materialized: coalesce(ws_qty, 0) + coalesce(cs_qty, 0), coalesce(ws_wc, 0) + coalesce(cs_wc, 0), coalesce(ws_sp, 0) + coalesce(cs_sp, 0), round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) |
| | mem-estimate=10.94KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=15 row-size=112B cardinality=100 |
| | in pipelines: 20(GETNEXT), 24(OPEN) |
| | |
| 19:HASH JOIN [RIGHT OUTER JOIN, PARTITIONED] |
| | hash predicates: d_year = d_year, cs_bill_customer_sk = ss_customer_sk, cs_item_sk = ss_item_sk |
| | fk/pk conjuncts: cs_bill_customer_sk = ss_customer_sk, cs_item_sk = ss_item_sk |
| | other predicates: (coalesce(sum(ws_quantity), CAST(0 AS BIGINT)) > CAST(0 AS BIGINT) OR coalesce(sum(cs_quantity), CAST(0 AS BIGINT)) > CAST(0 AS BIGINT)) |
| | runtime filters: RF000[bloom] <- d_year, RF001[bloom] <- ss_customer_sk, RF002[bloom] <- ss_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=13N,8N,3 row-size=168B cardinality=3.00K |
| | in pipelines: 24(GETNEXT), 28(OPEN) |
| | |
| |--34:EXCHANGE [HASH(d_year,ss_item_sk,ss_customer_sk)] |
| | | mem-estimate=404.34KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=8N,3 row-size=112B cardinality=3.00K |
| | | in pipelines: 28(GETNEXT) |
| | | |
| | F07:PLAN FRAGMENT [HASH(d_year,ws_item_sk,ws_bill_customer_sk)] hosts=2 instances=2 |
| | Per-Host Resources: mem-estimate=19.24MB mem-reservation=13.44MB thread-reservation=1 runtime-filters-memory=3.00MB |
| | 18:HASH JOIN [RIGHT OUTER JOIN, PARTITIONED] |
| | | hash predicates: d_year = d_year, ws_bill_customer_sk = ss_customer_sk, ws_item_sk = ss_item_sk |
| | | fk/pk conjuncts: ws_bill_customer_sk = ss_customer_sk, ws_item_sk = ss_item_sk |
| | | runtime filters: RF008[bloom] <- d_year, RF009[bloom] <- ss_customer_sk, RF010[bloom] <- ss_item_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8N,3 row-size=112B cardinality=3.00K |
| | | in pipelines: 28(GETNEXT), 32(OPEN) |
| | | |
| | |--33:EXCHANGE [HASH(d_year,ss_item_sk,ss_customer_sk)] |
| | | | mem-estimate=234.78KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=3.00K |
| | | | in pipelines: 32(GETNEXT) |
| | | | |
| | | F11:PLAN FRAGMENT [HASH(d_year,ss_item_sk,ss_customer_sk)] hosts=3 instances=3 |
| | | Per-Host Resources: mem-estimate=27.48MB mem-reservation=17.00MB thread-reservation=1 |
| | | 32:AGGREGATE [FINALIZE] |
| | | | output: sum:merge(ss_quantity), sum:merge(ss_wholesale_cost), sum:merge(ss_sales_price) |
| | | | group by: d_year, ss_item_sk, ss_customer_sk |
| | | | having: d_year = CAST(2000 AS INT) |
| | | | mem-estimate=17.30MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=3.00K |
| | | | in pipelines: 32(GETNEXT), 00(OPEN) |
| | | | |
| | | 31:EXCHANGE [HASH(d_year,ss_item_sk,ss_customer_sk)] |
| | | | mem-estimate=10.18MB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=589.03K |
| | | | in pipelines: 00(GETNEXT) |
| | | | |
| | | F08:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Host Resources: mem-estimate=129.16MB mem-reservation=32.44MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | | 05:AGGREGATE [STREAMING] |
| | | | output: sum(CAST(ss_quantity AS BIGINT)), sum(ss_wholesale_cost), sum(ss_sales_price) |
| | | | group by: d_year, ss_item_sk, ss_customer_sk |
| | | | mem-estimate=17.30MB mem-reservation=17.00MB spill-buffer=1.00MB thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=589.03K |
| | | | in pipelines: 00(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: RF016[bloom] <- d_date_sk |
| | | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | | tuple-ids=0,1N,2 row-size=60B cardinality=589.03K |
| | | | in pipelines: 00(GETNEXT), 02(OPEN) |
| | | | |
| | | |--30:EXCHANGE [BROADCAST] |
| | | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | | tuple-ids=2 row-size=8B cardinality=373 |
| | | | | in pipelines: 02(GETNEXT) |
| | | | | |
| | | | F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | | Per-Host Resources: mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=2 |
| | | | 02:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | stored statistics: |
| | | | table: rows=73.05K size=2.15MB |
| | | | columns: all |
| | | | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | | | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | | tuple-ids=2 row-size=8B cardinality=373 |
| | | | in pipelines: 02(GETNEXT) |
| | | | |
| | | 03: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 |
| | | | other predicates: sr_ticket_number IS NULL |
| | | | mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | | tuple-ids=0,1N row-size=52B cardinality=2.88M |
| | | | in pipelines: 00(GETNEXT), 01(OPEN) |
| | | | |
| | | |--29:EXCHANGE [BROADCAST] |
| | | | | mem-estimate=4.41MB mem-reservation=0B thread-reservation=0 |
| | | | | tuple-ids=1 row-size=16B cardinality=287.51K |
| | | | | in pipelines: 01(GETNEXT) |
| | | | | |
| | | | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | | Per-Host Resources: mem-estimate=48.00MB mem-reservation=4.00MB thread-reservation=2 |
| | | | 01:SCAN HDFS [tpcds_parquet.store_returns, RANDOM] |
| | | | HDFS partitions=1/1 files=1 size=15.43MB |
| | | | stored statistics: |
| | | | table: rows=287.51K size=15.43MB |
| | | | columns: all |
| | | | extrapolated-rows=disabled max-scan-range-rows=287.51K |
| | | | mem-estimate=48.00MB mem-reservation=4.00MB thread-reservation=1 |
| | | | tuple-ids=1 row-size=16B cardinality=287.51K |
| | | | in pipelines: 01(GETNEXT) |
| | | | |
| | | 00:SCAN HDFS [tpcds_parquet.store_sales, RANDOM] |
| | | HDFS partitions=1824/1824 files=1824 size=200.95MB |
| | | runtime filters: RF016[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: 00(GETNEXT) |
| | | |
| | 28:AGGREGATE [FINALIZE] |
| | | output: sum:merge(ws_quantity), sum:merge(ws_wholesale_cost), sum:merge(ws_sales_price) |
| | | group by: d_year, ws_item_sk, ws_bill_customer_sk |
| | | mem-estimate=10.00MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 28(GETNEXT), 06(OPEN) |
| | | |
| | 27:EXCHANGE [HASH(d_year,ws_item_sk,ws_bill_customer_sk)] |
| | | mem-estimate=4.07MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT) |
| | | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | Per-Host Resources: mem-estimate=242.94MB mem-reservation=32.81MB thread-reservation=2 runtime-filters-memory=3.00MB |
| | 11:AGGREGATE [STREAMING] |
| | | output: sum(CAST(ws_quantity AS BIGINT)), sum(ws_wholesale_cost), sum(ws_sales_price) |
| | | group by: d_year, ws_item_sk, ws_bill_customer_sk |
| | | mem-estimate=10.00MB mem-reservation=9.00MB spill-buffer=512.00KB thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT) |
| | | |
| | 10: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=5,6N,7 row-size=60B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT), 08(OPEN) |
| | | |
| | |--26:EXCHANGE [BROADCAST] |
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=7 row-size=8B cardinality=373 |
| | | | in pipelines: 08(GETNEXT) |
| | | | |
| | | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=33.00MB mem-reservation=1.50MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | | 08:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | runtime filters: RF008[bloom] -> tpcds_parquet.date_dim.d_year |
| | | stored statistics: |
| | | table: rows=73.05K size=2.15MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | tuple-ids=7 row-size=8B cardinality=373 |
| | | in pipelines: 08(GETNEXT) |
| | | |
| | 09: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 |
| | | other predicates: wr_order_number IS NULL |
| | | mem-estimate=2.88MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0 |
| | | tuple-ids=5,6N row-size=52B cardinality=719.38K |
| | | in pipelines: 06(GETNEXT), 07(OPEN) |
| | | |
| | |--25:EXCHANGE [BROADCAST] |
| | | | mem-estimate=1.11MB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=6 row-size=16B cardinality=71.76K |
| | | | in pipelines: 07(GETNEXT) |
| | | | |
| | | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Resources: mem-estimate=33.00MB mem-reservation=2.00MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | | 07:SCAN HDFS [tpcds_parquet.web_returns, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=5.66MB |
| | | runtime filters: RF010[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=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| | | tuple-ids=6 row-size=16B cardinality=71.76K |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | 06:SCAN HDFS [tpcds_parquet.web_sales, RANDOM] |
| | HDFS partitions=1/1 files=2 size=45.09MB |
| | runtime filters: RF009[bloom] -> tpcds_parquet.web_sales.ws_bill_customer_sk, RF010[bloom] -> tpcds_parquet.web_sales.ws_item_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=224.00MB mem-reservation=16.00MB thread-reservation=1 |
| | tuple-ids=5 row-size=36B cardinality=719.38K |
| | in pipelines: 06(GETNEXT) |
| | |
| 24:AGGREGATE [FINALIZE] |
| | output: sum:merge(cs_quantity), sum:merge(cs_wholesale_cost), sum:merge(cs_sales_price) |
| | group by: d_year, cs_item_sk, cs_bill_customer_sk |
| | mem-estimate=10.00MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 24(GETNEXT), 12(OPEN) |
| | |
| 23:EXCHANGE [HASH(d_year,cs_item_sk,cs_bill_customer_sk)] |
| | mem-estimate=5.42MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 12(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=357.92MB mem-reservation=34.69MB thread-reservation=2 runtime-filters-memory=3.00MB |
| 17:AGGREGATE [STREAMING] |
| | output: sum(CAST(cs_quantity AS BIGINT)), sum(cs_wholesale_cost), sum(cs_sales_price) |
| | group by: d_year, cs_item_sk, cs_bill_customer_sk |
| | mem-estimate=10.00MB mem-reservation=9.00MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 12(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: RF006[bloom] <- d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=10,11N,12 row-size=60B cardinality=294.63K |
| | in pipelines: 12(GETNEXT), 14(OPEN) |
| | |
| |--22:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=12 row-size=8B cardinality=373 |
| | | in pipelines: 14(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=33.00MB mem-reservation=1.50MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | 14:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | runtime filters: RF000[bloom] -> tpcds_parquet.date_dim.d_year |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=12 row-size=8B cardinality=373 |
| | in pipelines: 14(GETNEXT) |
| | |
| 15: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 |
| | other predicates: cr_order_number IS NULL |
| | mem-estimate=4.75MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0 |
| | tuple-ids=10,11N row-size=52B cardinality=1.44M |
| | in pipelines: 12(GETNEXT), 13(OPEN) |
| | |
| |--21:EXCHANGE [BROADCAST] |
| | | mem-estimate=2.22MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=11 row-size=16B cardinality=144.07K |
| | | in pipelines: 13(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=49.00MB mem-reservation=3.00MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | 13:SCAN HDFS [tpcds_parquet.catalog_returns, RANDOM] |
| | HDFS partitions=1/1 files=1 size=10.62MB |
| | runtime filters: RF002[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=48.00MB mem-reservation=2.00MB thread-reservation=1 |
| | tuple-ids=11 row-size=16B cardinality=144.07K |
| | in pipelines: 13(GETNEXT) |
| | |
| 12:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM] |
| HDFS partitions=1/1 files=3 size=96.62MB |
| runtime filters: RF001[bloom] -> tpcds_parquet.catalog_sales.cs_bill_customer_sk, RF002[bloom] -> tpcds_parquet.catalog_sales.cs_item_sk, RF006[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=10 row-size=36B cardinality=1.44M |
| in pipelines: 12(GETNEXT) |
| ---- PARALLELPLANS |
| Max Per-Host Resource Reservation: Memory=186.25MB Threads=23 |
| Per-Host Resource Estimates: Memory=411MB |
| F12:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=37.63KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: ss_sold_year, ss_item_sk, ss_customer_sk, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2), ss_qty, ss_wc, ss_sp, coalesce(ws_qty, 0) + coalesce(cs_qty, 0), coalesce(ws_wc, 0) + coalesce(cs_wc, 0), coalesce(ws_sp, 0) + coalesce(cs_sp, 0) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 35:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: ss_sold_year ASC, ss_item_sk ASC, ss_customer_sk ASC, ss_qty DESC, ss_wc DESC, ss_sp DESC, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) ASC, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) ASC, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) ASC, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) ASC |
| | limit: 100 |
| | mem-estimate=37.63KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=15 row-size=112B cardinality=100 |
| | in pipelines: 20(GETNEXT) |
| | |
| F03:PLAN FRAGMENT [HASH(d_year,cs_item_sk,cs_bill_customer_sk)] hosts=3 instances=3 |
| Per-Instance Resources: mem-estimate=15.42MB mem-reservation=8.50MB thread-reservation=1 |
| 20:TOP-N [LIMIT=100] |
| | order by: ss_sold_year ASC, ss_item_sk ASC, ss_customer_sk ASC, ss_qty DESC, ss_wc DESC, ss_sp DESC, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) ASC, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) ASC, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) ASC, round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) ASC |
| | materialized: coalesce(ws_qty, 0) + coalesce(cs_qty, 0), coalesce(ws_wc, 0) + coalesce(cs_wc, 0), coalesce(ws_sp, 0) + coalesce(cs_sp, 0), round((ss_qty * 1.00) / (coalesce(ws_qty, 0) + coalesce(cs_qty, 0)), 2) |
| | mem-estimate=10.94KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=15 row-size=112B cardinality=100 |
| | in pipelines: 20(GETNEXT), 24(OPEN) |
| | |
| 19:HASH JOIN [RIGHT OUTER JOIN, PARTITIONED] |
| | hash-table-id=00 |
| | hash predicates: d_year = d_year, cs_bill_customer_sk = ss_customer_sk, cs_item_sk = ss_item_sk |
| | fk/pk conjuncts: cs_bill_customer_sk = ss_customer_sk, cs_item_sk = ss_item_sk |
| | other predicates: (coalesce(sum(ws_quantity), CAST(0 AS BIGINT)) > CAST(0 AS BIGINT) OR coalesce(sum(cs_quantity), CAST(0 AS BIGINT)) > CAST(0 AS BIGINT)) |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=13N,8N,3 row-size=168B cardinality=3.00K |
| | in pipelines: 24(GETNEXT), 28(OPEN) |
| | |
| |--F13:PLAN FRAGMENT [HASH(d_year,cs_item_sk,cs_bill_customer_sk)] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=5.33MB mem-reservation=4.94MB thread-reservation=1 runtime-filters-memory=3.00MB |
| | JOIN BUILD |
| | | join-table-id=00 plan-id=01 cohort-id=01 |
| | | build expressions: d_year, ss_customer_sk, ss_item_sk |
| | | runtime filters: RF000[bloom] <- d_year, RF001[bloom] <- ss_customer_sk, RF002[bloom] <- ss_item_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 34:EXCHANGE [HASH(d_year,ss_item_sk,ss_customer_sk)] |
| | | mem-estimate=404.34KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=8N,3 row-size=112B cardinality=3.00K |
| | | in pipelines: 28(GETNEXT) |
| | | |
| | F07:PLAN FRAGMENT [HASH(d_year,ws_item_sk,ws_bill_customer_sk)] hosts=2 instances=2 |
| | Per-Instance Resources: mem-estimate=14.07MB mem-reservation=8.50MB thread-reservation=1 |
| | 18:HASH JOIN [RIGHT OUTER JOIN, PARTITIONED] |
| | | hash-table-id=01 |
| | | hash predicates: d_year = d_year, ws_bill_customer_sk = ss_customer_sk, ws_item_sk = ss_item_sk |
| | | fk/pk conjuncts: ws_bill_customer_sk = ss_customer_sk, ws_item_sk = ss_item_sk |
| | | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=8N,3 row-size=112B cardinality=3.00K |
| | | in pipelines: 28(GETNEXT), 32(OPEN) |
| | | |
| | |--F14:PLAN FRAGMENT [HASH(d_year,ws_item_sk,ws_bill_customer_sk)] hosts=2 instances=2 |
| | | | Per-Instance Resources: mem-estimate=5.34MB mem-reservation=4.94MB thread-reservation=1 runtime-filters-memory=3.00MB |
| | | JOIN BUILD |
| | | | join-table-id=01 plan-id=02 cohort-id=02 |
| | | | build expressions: d_year, ss_customer_sk, ss_item_sk |
| | | | runtime filters: RF008[bloom] <- d_year, RF009[bloom] <- ss_customer_sk, RF010[bloom] <- ss_item_sk |
| | | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | | |
| | | 33:EXCHANGE [HASH(d_year,ss_item_sk,ss_customer_sk)] |
| | | | mem-estimate=414.78KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=3.00K |
| | | | in pipelines: 32(GETNEXT) |
| | | | |
| | | F11:PLAN FRAGMENT [HASH(d_year,ss_item_sk,ss_customer_sk)] hosts=3 instances=6 |
| | | Per-Instance Resources: mem-estimate=20.35MB mem-reservation=8.50MB thread-reservation=1 |
| | | 32:AGGREGATE [FINALIZE] |
| | | | output: sum:merge(ss_quantity), sum:merge(ss_wholesale_cost), sum:merge(ss_sales_price) |
| | | | group by: d_year, ss_item_sk, ss_customer_sk |
| | | | having: d_year = CAST(2000 AS INT) |
| | | | mem-estimate=10.00MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=3.00K |
| | | | in pipelines: 32(GETNEXT), 00(OPEN) |
| | | | |
| | | 31:EXCHANGE [HASH(d_year,ss_item_sk,ss_customer_sk)] |
| | | | mem-estimate=10.35MB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=589.03K |
| | | | in pipelines: 00(GETNEXT) |
| | | | |
| | | F08:PLAN FRAGMENT [RANDOM] hosts=3 instances=6 |
| | | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB |
| | | Per-Instance Resources: mem-estimate=26.00MB mem-reservation=13.00MB thread-reservation=1 |
| | | 05:AGGREGATE [STREAMING] |
| | | | output: sum(CAST(ss_quantity AS BIGINT)), sum(ss_wholesale_cost), sum(ss_sales_price) |
| | | | group by: d_year, ss_item_sk, ss_customer_sk |
| | | | mem-estimate=10.00MB mem-reservation=9.00MB spill-buffer=512.00KB thread-reservation=0 |
| | | | tuple-ids=3 row-size=56B cardinality=589.03K |
| | | | in pipelines: 00(GETNEXT) |
| | | | |
| | | 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | | | hash-table-id=02 |
| | | | hash predicates: ss_sold_date_sk = d_date_sk |
| | | | fk/pk conjuncts: ss_sold_date_sk = d_date_sk |
| | | | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | | | tuple-ids=0,1N,2 row-size=60B cardinality=589.03K |
| | | | in pipelines: 00(GETNEXT), 02(OPEN) |
| | | | |
| | | |--F15:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | | | Per-Instance Resources: mem-estimate=4.89MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | | | JOIN BUILD |
| | | | | join-table-id=02 plan-id=03 cohort-id=03 |
| | | | | build expressions: d_date_sk |
| | | | | runtime filters: RF016[bloom] <- d_date_sk |
| | | | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | | | |
| | | | 30:EXCHANGE [BROADCAST] |
| | | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | | tuple-ids=2 row-size=8B cardinality=373 |
| | | | | in pipelines: 02(GETNEXT) |
| | | | | |
| | | | F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | | 02:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | stored statistics: |
| | | | table: rows=73.05K size=2.15MB |
| | | | columns: all |
| | | | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | | | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | | | tuple-ids=2 row-size=8B cardinality=373 |
| | | | in pipelines: 02(GETNEXT) |
| | | | |
| | | 03:HASH JOIN [LEFT OUTER JOIN, BROADCAST] |
| | | | hash-table-id=03 |
| | | | 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 |
| | | | other predicates: sr_ticket_number IS NULL |
| | | | mem-estimate=0B mem-reservation=0B spill-buffer=512.00KB thread-reservation=0 |
| | | | tuple-ids=0,1N row-size=52B cardinality=2.88M |
| | | | in pipelines: 00(GETNEXT), 01(OPEN) |
| | | | |
| | | |--F16:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | | | Per-Instance Resources: mem-estimate=21.41MB mem-reservation=17.00MB thread-reservation=1 |
| | | | JOIN BUILD |
| | | | | join-table-id=03 plan-id=04 cohort-id=03 |
| | | | | build expressions: sr_item_sk, sr_ticket_number |
| | | | | mem-estimate=17.00MB mem-reservation=17.00MB spill-buffer=512.00KB thread-reservation=0 |
| | | | | |
| | | | 29:EXCHANGE [BROADCAST] |
| | | | | mem-estimate=4.41MB mem-reservation=0B thread-reservation=0 |
| | | | | tuple-ids=1 row-size=16B cardinality=287.51K |
| | | | | in pipelines: 01(GETNEXT) |
| | | | | |
| | | | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | | Per-Instance Resources: mem-estimate=24.00MB mem-reservation=4.00MB thread-reservation=1 |
| | | | 01:SCAN HDFS [tpcds_parquet.store_returns, RANDOM] |
| | | | HDFS partitions=1/1 files=1 size=15.43MB |
| | | | stored statistics: |
| | | | table: rows=287.51K size=15.43MB |
| | | | columns: all |
| | | | extrapolated-rows=disabled max-scan-range-rows=287.51K |
| | | | mem-estimate=24.00MB mem-reservation=4.00MB thread-reservation=0 |
| | | | tuple-ids=1 row-size=16B cardinality=287.51K |
| | | | in pipelines: 01(GETNEXT) |
| | | | |
| | | 00:SCAN HDFS [tpcds_parquet.store_sales, RANDOM] |
| | | HDFS partitions=1824/1824 files=1824 size=200.95MB |
| | | runtime filters: RF016[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=16.00MB mem-reservation=4.00MB thread-reservation=0 |
| | | tuple-ids=0 row-size=36B cardinality=2.88M |
| | | in pipelines: 00(GETNEXT) |
| | | |
| | 28:AGGREGATE [FINALIZE] |
| | | output: sum:merge(ws_quantity), sum:merge(ws_wholesale_cost), sum:merge(ws_sales_price) |
| | | group by: d_year, ws_item_sk, ws_bill_customer_sk |
| | | mem-estimate=10.00MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 28(GETNEXT), 06(OPEN) |
| | | |
| | 27:EXCHANGE [HASH(d_year,ws_item_sk,ws_bill_customer_sk)] |
| | | mem-estimate=4.07MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT) |
| | | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | Per-Host Shared Resources: mem-estimate=3.00MB mem-reservation=3.00MB thread-reservation=0 runtime-filters-memory=3.00MB |
| | Per-Instance Resources: mem-estimate=42.00MB mem-reservation=25.00MB thread-reservation=1 |
| | 11:AGGREGATE [STREAMING] |
| | | output: sum(CAST(ws_quantity AS BIGINT)), sum(ws_wholesale_cost), sum(ws_sales_price) |
| | | group by: d_year, ws_item_sk, ws_bill_customer_sk |
| | | mem-estimate=10.00MB mem-reservation=9.00MB spill-buffer=512.00KB thread-reservation=0 |
| | | tuple-ids=8 row-size=56B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT) |
| | | |
| | 10:HASH JOIN [INNER JOIN, BROADCAST] |
| | | hash-table-id=04 |
| | | hash predicates: ws_sold_date_sk = d_date_sk |
| | | fk/pk conjuncts: ws_sold_date_sk = d_date_sk |
| | | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=5,6N,7 row-size=60B cardinality=148.00K |
| | | in pipelines: 06(GETNEXT), 08(OPEN) |
| | | |
| | |--F17:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | | | Per-Instance Resources: mem-estimate=4.89MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | | JOIN BUILD |
| | | | join-table-id=04 plan-id=05 cohort-id=02 |
| | | | build expressions: d_date_sk |
| | | | runtime filters: RF014[bloom] <- d_date_sk |
| | | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | | |
| | | 26:EXCHANGE [BROADCAST] |
| | | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=7 row-size=8B cardinality=373 |
| | | | in pipelines: 08(GETNEXT) |
| | | | |
| | | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB |
| | | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | 08:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | runtime filters: RF008[bloom] -> tpcds_parquet.date_dim.d_year |
| | | stored statistics: |
| | | table: rows=73.05K size=2.15MB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | | tuple-ids=7 row-size=8B cardinality=373 |
| | | in pipelines: 08(GETNEXT) |
| | | |
| | 09:HASH JOIN [LEFT OUTER JOIN, BROADCAST] |
| | | hash-table-id=05 |
| | | 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 |
| | | other predicates: wr_order_number IS NULL |
| | | mem-estimate=0B mem-reservation=0B spill-buffer=128.00KB thread-reservation=0 |
| | | tuple-ids=5,6N row-size=52B cardinality=719.38K |
| | | in pipelines: 06(GETNEXT), 07(OPEN) |
| | | |
| | |--F18:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | | | Per-Instance Resources: mem-estimate=6.86MB mem-reservation=5.75MB thread-reservation=1 |
| | | JOIN BUILD |
| | | | join-table-id=05 plan-id=06 cohort-id=02 |
| | | | build expressions: wr_item_sk, wr_order_number |
| | | | mem-estimate=5.75MB mem-reservation=5.75MB spill-buffer=128.00KB thread-reservation=0 |
| | | | |
| | | 25:EXCHANGE [BROADCAST] |
| | | | mem-estimate=1.11MB mem-reservation=0B thread-reservation=0 |
| | | | tuple-ids=6 row-size=16B cardinality=71.76K |
| | | | in pipelines: 07(GETNEXT) |
| | | | |
| | | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB |
| | | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=1 |
| | | 07:SCAN HDFS [tpcds_parquet.web_returns, RANDOM] |
| | | HDFS partitions=1/1 files=1 size=5.66MB |
| | | runtime filters: RF010[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=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| | | tuple-ids=6 row-size=16B cardinality=71.76K |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | 06:SCAN HDFS [tpcds_parquet.web_sales, RANDOM] |
| | HDFS partitions=1/1 files=2 size=45.09MB |
| | runtime filters: RF009[bloom] -> tpcds_parquet.web_sales.ws_bill_customer_sk, RF010[bloom] -> tpcds_parquet.web_sales.ws_item_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=32.00MB mem-reservation=16.00MB thread-reservation=0 |
| | tuple-ids=5 row-size=36B cardinality=719.38K |
| | in pipelines: 06(GETNEXT) |
| | |
| 24:AGGREGATE [FINALIZE] |
| | output: sum:merge(cs_quantity), sum:merge(cs_wholesale_cost), sum:merge(cs_sales_price) |
| | group by: d_year, cs_item_sk, cs_bill_customer_sk |
| | mem-estimate=10.00MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 24(GETNEXT), 12(OPEN) |
| | |
| 23:EXCHANGE [HASH(d_year,cs_item_sk,cs_bill_customer_sk)] |
| | mem-estimate=5.42MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 12(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| Per-Host Shared Resources: mem-estimate=3.00MB mem-reservation=3.00MB thread-reservation=0 runtime-filters-memory=3.00MB |
| Per-Instance Resources: mem-estimate=58.00MB mem-reservation=25.00MB thread-reservation=1 |
| 17:AGGREGATE [STREAMING] |
| | output: sum(CAST(cs_quantity AS BIGINT)), sum(cs_wholesale_cost), sum(cs_sales_price) |
| | group by: d_year, cs_item_sk, cs_bill_customer_sk |
| | mem-estimate=10.00MB mem-reservation=9.00MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=13 row-size=56B cardinality=294.63K |
| | in pipelines: 12(GETNEXT) |
| | |
| 16:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=06 |
| | hash predicates: cs_sold_date_sk = d_date_sk |
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=10,11N,12 row-size=60B cardinality=294.63K |
| | in pipelines: 12(GETNEXT), 14(OPEN) |
| | |
| |--F19:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=4.89MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=06 plan-id=07 cohort-id=01 |
| | | build expressions: d_date_sk |
| | | runtime filters: RF006[bloom] <- d_date_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 22:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=12 row-size=8B cardinality=373 |
| | | in pipelines: 14(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1 |
| | 14:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | runtime filters: RF000[bloom] -> tpcds_parquet.date_dim.d_year |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | parquet dictionary predicates: tpcds_parquet.date_dim.d_year = CAST(2000 AS INT) |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=12 row-size=8B cardinality=373 |
| | in pipelines: 14(GETNEXT) |
| | |
| 15:HASH JOIN [LEFT OUTER JOIN, BROADCAST] |
| | hash-table-id=07 |
| | 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 |
| | other predicates: cr_order_number IS NULL |
| | mem-estimate=0B mem-reservation=0B spill-buffer=256.00KB thread-reservation=0 |
| | tuple-ids=10,11N row-size=52B cardinality=1.44M |
| | in pipelines: 12(GETNEXT), 13(OPEN) |
| | |
| |--F20:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=11.72MB mem-reservation=9.50MB thread-reservation=1 |
| | JOIN BUILD |
| | | join-table-id=07 plan-id=08 cohort-id=01 |
| | | build expressions: cr_item_sk, cr_order_number |
| | | mem-estimate=9.50MB mem-reservation=9.50MB spill-buffer=256.00KB thread-reservation=0 |
| | | |
| | 21:EXCHANGE [BROADCAST] |
| | | mem-estimate=2.22MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=11 row-size=16B cardinality=144.07K |
| | | in pipelines: 13(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB |
| | Per-Instance Resources: mem-estimate=24.00MB mem-reservation=2.00MB thread-reservation=1 |
| | 13:SCAN HDFS [tpcds_parquet.catalog_returns, RANDOM] |
| | HDFS partitions=1/1 files=1 size=10.62MB |
| | runtime filters: RF002[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=24.00MB mem-reservation=2.00MB thread-reservation=0 |
| | tuple-ids=11 row-size=16B cardinality=144.07K |
| | in pipelines: 13(GETNEXT) |
| | |
| 12:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM] |
| HDFS partitions=1/1 files=3 size=96.62MB |
| runtime filters: RF001[bloom] -> tpcds_parquet.catalog_sales.cs_bill_customer_sk, RF002[bloom] -> tpcds_parquet.catalog_sales.cs_item_sk, RF006[bloom] -> cs_sold_date_sk |
| stored statistics: |
| table: rows=1.44M size=96.62MB |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=650.14K |
| mem-estimate=48.00MB mem-reservation=16.00MB thread-reservation=0 |
| tuple-ids=10 row-size=36B cardinality=1.44M |
| in pipelines: 12(GETNEXT) |
| ==== |