| # TPCDS-Q20 |
| # start query 20 in stream 0 using template query20.tpl using seed 731363624 |
| select i_item_id |
| ,i_item_desc |
| ,i_category |
| ,i_class |
| ,i_current_price |
| ,sum(cs_ext_sales_price) as itemrevenue |
| ,sum(cs_ext_sales_price)*100/sum(sum(cs_ext_sales_price)) over |
| (partition by i_class) as revenueratio |
| from catalog_sales |
| ,item |
| ,date_dim |
| where cs_item_sk = i_item_sk |
| and i_category in ('Books', 'Home', 'Jewelry') |
| and cs_sold_date_sk = d_date_sk |
| and d_date between cast('1998-05-08' as date) |
| and (cast('1998-05-08' as date) + interval 30 days) |
| group by i_item_id |
| ,i_item_desc |
| ,i_category |
| ,i_class |
| ,i_current_price |
| order by i_category |
| ,i_class |
| ,i_item_id |
| ,i_item_desc |
| ,revenueratio |
| limit 100; |
| |
| # end query 20 in stream 0 using template query20.tpl |
| ---- PLAN |
| Max Per-Host Resource Reservation: Memory=80.94MB Threads=1 |
| Per-Host Resource Estimates: Memory=833MB |
| F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=832.98MB mem-reservation=80.94MB thread-reservation=1 runtime-filters-memory=2.00MB |
| | max-parallelism=1 segment-costs=[100001793, 3251818, 4106309, 700] |
| PLAN-ROOT SINK |
| | output exprs: i_item_id, i_item_desc, i_category, i_class, i_current_price, sum(cs_ext_sales_price), sum(cs_ext_sales_price) * CAST(100 AS DECIMAL(3,0)) / sum(sum(cs_ext_sales_price)) |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 cost=700 |
| | |
| 08:TOP-N [LIMIT=100] |
| | order by: i_category ASC, i_class ASC, i_item_id ASC, i_item_desc ASC, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) ASC |
| | mem-estimate=20.93KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=5 row-size=214B cardinality=100 cost=3746309 |
| | in pipelines: 08(GETNEXT), 06(OPEN) |
| | |
| 07:ANALYTIC |
| | functions: sum(sum(cs_ext_sales_price)) |
| | partition by: i_class |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=10,9 row-size=214B cardinality=360.00K cost=360000 |
| | in pipelines: 06(GETNEXT) |
| | |
| 06:SORT |
| | order by: i_class ASC NULLS LAST |
| | mem-estimate=68.08MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=10 row-size=198B cardinality=360.00K cost=3251818 |
| | in pipelines: 06(GETNEXT), 05(OPEN) |
| | |
| 11:TUPLE CACHE |
| | cache key: adf324223579b7991e7d593ded41e73c |
| | input scan node ids: 0,2,1 |
| | estimated serialized size: 69.45MB |
| | estimated serialized size per node: 6.95MB |
| | cumulative processing cost: 100001793 |
| | cache read processing cost: 47844 |
| | cache write processing cost: 196628 |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=360.00K cost=0 |
| | in pipelines: 05(GETNEXT) |
| | |
| 05:AGGREGATE [FINALIZE] |
| | output: sum(cs_ext_sales_price) |
| | group by: i_item_id, i_item_desc, i_category, i_class, i_current_price |
| | mem-estimate=754.90MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=360.00K cost=31766387 |
| | in pipelines: 05(GETNEXT), 00(OPEN) |
| | |
| 04:HASH JOIN [INNER JOIN] |
| | hash predicates: cs_item_sk = i_item_sk |
| | fk/pk conjuncts: cs_item_sk = i_item_sk |
| | runtime filters: RF000[bloom] <- i_item_sk, RF001[min_max] <- i_item_sk |
| | mem-estimate=34.00MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=0,2,1 row-size=206B cardinality=21.93M cost=22842836 |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--10:TUPLE CACHE |
| | | cache key: 39981d71123ba1933de6a6cac811e5cd |
| | | input scan node ids: 1 |
| | | estimated serialized size: 19.60MB |
| | | estimated serialized size per node: 4.90MB |
| | | cumulative processing cost: 727024 |
| | | cache read processing cost: 14353 |
| | | cache write processing cost: 55489 |
| | | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | tuple-ids=1 row-size=186B cardinality=108.00K cost=0 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | 01:SCAN HDFS [tpcds_partitioned_parquet_snap.item] |
| | HDFS partitions=1/1 files=1 size=33.54MB |
| | deterministic scan range assignment: true |
| | schedule scan ranges oldest to newest: true |
| | predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | stored statistics: |
| | table: rows=360.00K size=33.54MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=101.54K |
| | parquet statistics predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | parquet dictionary predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=1 row-size=186B cardinality=108.00K cost=727024 |
| | in pipelines: 01(GETNEXT) |
| | |
| 03: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: RF002[bloom] <- d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2 row-size=20B cardinality=73.14M cost=32014144 |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--09:TUPLE CACHE |
| | | cache key: ddcd0463ed8acb9dfd16a906a3d9a5cd |
| | | input scan node ids: 2 |
| | | estimated serialized size: 372B |
| | | estimated serialized size per node: 372B |
| | | cumulative processing cost: 12520 |
| | | cache read processing cost: 4 |
| | | cache write processing cost: 1 |
| | | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | tuple-ids=2 row-size=8B cardinality=31 cost=0 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | 02:SCAN HDFS [tpcds_partitioned_parquet_snap.date_dim] |
| | HDFS partitions=1/1 files=1 size=2.17MB |
| | deterministic scan range assignment: true |
| | schedule scan ranges oldest to newest: true |
| | predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | stored statistics: |
| | table: rows=73.05K size=2.17MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | parquet dictionary predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| | tuple-ids=2 row-size=8B cardinality=31 cost=12520 |
| | in pipelines: 02(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_partitioned_parquet_snap.catalog_sales] |
| HDFS partitions=1831/1831 files=1831 size=280.96GB |
| deterministic scan range assignment: true |
| schedule scan ranges oldest to newest: true |
| runtime filters: RF001[min_max] -> cs_item_sk, RF000[bloom] -> cs_item_sk, RF002[bloom] -> cs_sold_date_sk |
| stored statistics: |
| table: rows=4.32G size=280.96GB |
| partitions: 1831/1831 rows=4.32G |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=21.52M est-scan-range=31(filtered from 1831) |
| mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| tuple-ids=0 row-size=12B cardinality=73.14M(filtered from 4.32G) cost=12638882 |
| in pipelines: 00(GETNEXT) |
| ---- DISTRIBUTEDPLAN |
| Max Per-Host Resource Reservation: Memory=280.31MB Threads=10 |
| Per-Host Resource Estimates: Memory=955MB |
| F05:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=4.21MB mem-reservation=4.00MB thread-reservation=1 |
| | max-parallelism=1 segment-costs=[768] cpu-comparison-result=30 [max(1 (self) vs 30 (sum children))] |
| PLAN-ROOT SINK |
| | output exprs: i_item_id, i_item_desc, i_category, i_class, i_current_price, sum(cs_ext_sales_price), sum(cs_ext_sales_price) * CAST(100 AS DECIMAL(3,0)) / sum(sum(cs_ext_sales_price)) |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 cost=700 |
| | |
| 14:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: i_category ASC, i_class ASC, i_item_id ASC, i_item_desc ASC, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) ASC |
| | limit: 100 |
| | mem-estimate=215.28KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=5 row-size=214B cardinality=100 cost=68 |
| | in pipelines: 08(GETNEXT) |
| | |
| F04:PLAN FRAGMENT [HASH(i_class)] hosts=10 instances=10 (adjusted from 120) |
| Per-Instance Resources: mem-estimate=24.78MB mem-reservation=16.00MB thread-reservation=1 |
| max-parallelism=10 segment-costs=[3620186, 4106309, 592] cpu-comparison-result=30 [max(10 (self) vs 30 (sum children))] |
| 08:TOP-N [LIMIT=100] |
| | order by: i_category ASC, i_class ASC, i_item_id ASC, i_item_desc ASC, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) ASC |
| | mem-estimate=20.93KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=5 row-size=214B cardinality=100 cost=3746309 |
| | in pipelines: 08(GETNEXT), 06(OPEN) |
| | |
| 07:ANALYTIC |
| | functions: sum(sum(cs_ext_sales_price)) |
| | partition by: i_class |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=10,9 row-size=214B cardinality=360.00K cost=360000 |
| | in pipelines: 06(GETNEXT) |
| | |
| 06:SORT |
| | order by: i_class ASC NULLS LAST |
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=10 row-size=198B cardinality=360.00K cost=3251818 |
| | in pipelines: 06(GETNEXT), 12(OPEN) |
| | |
| 13:EXCHANGE [HASH(i_class)] |
| | mem-estimate=8.78MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=360.00K cost=368368 |
| | in pipelines: 12(GETNEXT) |
| | |
| F03:PLAN FRAGMENT [HASH(i_item_id,i_item_desc,i_category,i_class,i_current_price)] hosts=10 instances=10 (adjusted from 120) |
| Per-Instance Resources: mem-estimate=360.84MB mem-reservation=34.00MB thread-reservation=1 |
| max-parallelism=10 segment-costs=[42860487, 4782688] cpu-comparison-result=30 [max(10 (self) vs 30 (sum children))] |
| 12:AGGREGATE [FINALIZE] |
| | output: sum:merge(cs_ext_sales_price) |
| | group by: i_item_id, i_item_desc, i_category, i_class, i_current_price |
| | mem-estimate=344.91MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=360.00K cost=25262416 |
| | in pipelines: 12(GETNEXT), 00(OPEN) |
| | |
| 11:EXCHANGE [HASH(i_item_id,i_item_desc,i_category,i_class,i_current_price)] |
| | mem-estimate=15.93MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=17.20M cost=17598071 |
| | in pipelines: 00(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=10 instances=30 (adjusted from 120) |
| Per-Host Shared Resources: mem-estimate=2.00MB mem-reservation=2.00MB thread-reservation=0 runtime-filters-memory=2.00MB |
| Per-Instance Resources: mem-estimate=133.86MB mem-reservation=35.00MB thread-reservation=1 |
| max-parallelism=30 segment-costs=[175406369, 228483356] cpu-comparison-result=30 [max(30 (self) vs 25 (sum children))] |
| 05:AGGREGATE [STREAMING] |
| | output: sum(cs_ext_sales_price) |
| | group by: i_item_id, i_item_desc, i_category, i_class, i_current_price |
| | mem-estimate=109.96MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=17.20M cost=108018538 |
| | in pipelines: 00(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=00 |
| | hash predicates: cs_item_sk = i_item_sk |
| | fk/pk conjuncts: cs_item_sk = i_item_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=0,2,1 row-size=206B cardinality=21.93M cost=22734836 |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--F06:PLAN FRAGMENT [RANDOM] hosts=10 instances=10 |
| | | Per-Instance Resources: mem-estimate=113.74MB mem-reservation=103.00MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | | max-parallelism=10 segment-costs=[251530] |
| | JOIN BUILD |
| | | join-table-id=00 plan-id=01 cohort-id=01 |
| | | build expressions: i_item_sk |
| | | runtime filters: RF000[bloom] <- i_item_sk, RF001[min_max] <- i_item_sk |
| | | mem-estimate=102.00MB mem-reservation=102.00MB spill-buffer=2.00MB thread-reservation=0 cost=108000 |
| | | |
| | 10:EXCHANGE [BROADCAST] |
| | | mem-estimate=10.74MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=186B cardinality=108.00K cost=143530 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=4 instances=4 |
| | Per-Instance Resources: mem-estimate=20.74MB mem-reservation=4.50MB thread-reservation=1 |
| | max-parallelism=4 segment-costs=[783679] |
| | 16:TUPLE CACHE |
| | | cache key: 39981d71123ba1933de6a6cac811e5cd |
| | | input scan node ids: 1 |
| | | estimated serialized size: 19.60MB |
| | | estimated serialized size per node: 4.90MB |
| | | cumulative processing cost: 727024 |
| | | cache read processing cost: 14353 |
| | | cache write processing cost: 55489 |
| | | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | tuple-ids=1 row-size=186B cardinality=108.00K cost=0 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | 01:SCAN HDFS [tpcds_partitioned_parquet_snap.item, RANDOM] |
| | HDFS partitions=1/1 files=1 size=33.54MB |
| | deterministic scan range assignment: true |
| | schedule scan ranges oldest to newest: true |
| | predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | stored statistics: |
| | table: rows=360.00K size=33.54MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=101.54K |
| | parquet statistics predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | parquet dictionary predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=1 row-size=186B cardinality=108.00K cost=727024 |
| | in pipelines: 01(GETNEXT) |
| | |
| 03:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=01 |
| | 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=0,2 row-size=20B cardinality=73.14M cost=32014113 |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--F07:PLAN FRAGMENT [RANDOM] hosts=10 instances=10 |
| | | Per-Instance Resources: mem-estimate=6.83MB mem-reservation=6.81MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | | max-parallelism=10 segment-costs=[71] |
| | JOIN BUILD |
| | | join-table-id=01 plan-id=02 cohort-id=01 |
| | | build expressions: d_date_sk |
| | | runtime filters: RF002[bloom] <- d_date_sk |
| | | mem-estimate=5.81MB mem-reservation=5.81MB spill-buffer=64.00KB thread-reservation=0 cost=31 |
| | | |
| | 09:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=8B cardinality=31 cost=40 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=20.05MB mem-reservation=5.00MB thread-reservation=1 |
| | max-parallelism=1 segment-costs=[12521] |
| | 15:TUPLE CACHE |
| | | cache key: ddcd0463ed8acb9dfd16a906a3d9a5cd |
| | | input scan node ids: 2 |
| | | estimated serialized size: 372B |
| | | estimated serialized size per node: 372B |
| | | cumulative processing cost: 12520 |
| | | cache read processing cost: 4 |
| | | cache write processing cost: 1 |
| | | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | tuple-ids=2 row-size=8B cardinality=31 cost=0 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | 02:SCAN HDFS [tpcds_partitioned_parquet_snap.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.17MB |
| | deterministic scan range assignment: true |
| | schedule scan ranges oldest to newest: true |
| | predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | stored statistics: |
| | table: rows=73.05K size=2.17MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | parquet dictionary predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| | tuple-ids=2 row-size=8B cardinality=31 cost=12520 |
| | in pipelines: 02(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_partitioned_parquet_snap.catalog_sales, RANDOM] |
| HDFS partitions=1831/1831 files=1831 size=280.96GB |
| runtime filters: RF001[min_max] -> cs_item_sk, RF000[bloom] -> cs_item_sk, RF002[bloom] -> cs_sold_date_sk |
| stored statistics: |
| table: rows=4.32G size=280.96GB |
| partitions: 1831/1831 rows=4.32G |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=21.52M est-scan-range=31(filtered from 1831) |
| mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| tuple-ids=0 row-size=12B cardinality=73.14M(filtered from 4.32G) cost=12638882 |
| in pipelines: 00(GETNEXT) |
| ---- PARALLELPLANS |
| Max Per-Host Resource Reservation: Memory=280.31MB Threads=10 |
| Per-Host Resource Estimates: Memory=955MB |
| F05:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=4.21MB mem-reservation=4.00MB thread-reservation=1 |
| | max-parallelism=1 segment-costs=[768] cpu-comparison-result=30 [max(1 (self) vs 30 (sum children))] |
| PLAN-ROOT SINK |
| | output exprs: i_item_id, i_item_desc, i_category, i_class, i_current_price, sum(cs_ext_sales_price), sum(cs_ext_sales_price) * CAST(100 AS DECIMAL(3,0)) / sum(sum(cs_ext_sales_price)) |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 cost=700 |
| | |
| 14:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: i_category ASC, i_class ASC, i_item_id ASC, i_item_desc ASC, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) ASC |
| | limit: 100 |
| | mem-estimate=215.28KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=5 row-size=214B cardinality=100 cost=68 |
| | in pipelines: 08(GETNEXT) |
| | |
| F04:PLAN FRAGMENT [HASH(i_class)] hosts=10 instances=10 (adjusted from 120) |
| Per-Instance Resources: mem-estimate=24.78MB mem-reservation=16.00MB thread-reservation=1 |
| max-parallelism=10 segment-costs=[3620186, 4106309, 592] cpu-comparison-result=30 [max(10 (self) vs 30 (sum children))] |
| 08:TOP-N [LIMIT=100] |
| | order by: i_category ASC, i_class ASC, i_item_id ASC, i_item_desc ASC, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) ASC |
| | mem-estimate=20.93KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=5 row-size=214B cardinality=100 cost=3746309 |
| | in pipelines: 08(GETNEXT), 06(OPEN) |
| | |
| 07:ANALYTIC |
| | functions: sum(sum(cs_ext_sales_price)) |
| | partition by: i_class |
| | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=10,9 row-size=214B cardinality=360.00K cost=360000 |
| | in pipelines: 06(GETNEXT) |
| | |
| 06:SORT |
| | order by: i_class ASC NULLS LAST |
| | mem-estimate=12.00MB mem-reservation=12.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=10 row-size=198B cardinality=360.00K cost=3251818 |
| | in pipelines: 06(GETNEXT), 12(OPEN) |
| | |
| 13:EXCHANGE [HASH(i_class)] |
| | mem-estimate=8.78MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=360.00K cost=368368 |
| | in pipelines: 12(GETNEXT) |
| | |
| F03:PLAN FRAGMENT [HASH(i_item_id,i_item_desc,i_category,i_class,i_current_price)] hosts=10 instances=10 (adjusted from 120) |
| Per-Instance Resources: mem-estimate=360.84MB mem-reservation=34.00MB thread-reservation=1 |
| max-parallelism=10 segment-costs=[42860487, 4782688] cpu-comparison-result=30 [max(10 (self) vs 30 (sum children))] |
| 12:AGGREGATE [FINALIZE] |
| | output: sum:merge(cs_ext_sales_price) |
| | group by: i_item_id, i_item_desc, i_category, i_class, i_current_price |
| | mem-estimate=344.91MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=360.00K cost=25262416 |
| | in pipelines: 12(GETNEXT), 00(OPEN) |
| | |
| 11:EXCHANGE [HASH(i_item_id,i_item_desc,i_category,i_class,i_current_price)] |
| | mem-estimate=15.93MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=17.20M cost=17598071 |
| | in pipelines: 00(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=10 instances=30 (adjusted from 120) |
| Per-Host Shared Resources: mem-estimate=2.00MB mem-reservation=2.00MB thread-reservation=0 runtime-filters-memory=2.00MB |
| Per-Instance Resources: mem-estimate=133.86MB mem-reservation=35.00MB thread-reservation=1 |
| max-parallelism=30 segment-costs=[175406369, 228483356] cpu-comparison-result=30 [max(30 (self) vs 25 (sum children))] |
| 05:AGGREGATE [STREAMING] |
| | output: sum(cs_ext_sales_price) |
| | group by: i_item_id, i_item_desc, i_category, i_class, i_current_price |
| | mem-estimate=109.96MB mem-reservation=34.00MB spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=198B cardinality=17.20M cost=108018538 |
| | in pipelines: 00(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=00 |
| | hash predicates: cs_item_sk = i_item_sk |
| | fk/pk conjuncts: cs_item_sk = i_item_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=2.00MB thread-reservation=0 |
| | tuple-ids=0,2,1 row-size=206B cardinality=21.93M cost=22734836 |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--F06:PLAN FRAGMENT [RANDOM] hosts=10 instances=10 |
| | | Per-Instance Resources: mem-estimate=113.74MB mem-reservation=103.00MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | | max-parallelism=10 segment-costs=[251530] |
| | JOIN BUILD |
| | | join-table-id=00 plan-id=01 cohort-id=01 |
| | | build expressions: i_item_sk |
| | | runtime filters: RF000[bloom] <- i_item_sk, RF001[min_max] <- i_item_sk |
| | | mem-estimate=102.00MB mem-reservation=102.00MB spill-buffer=2.00MB thread-reservation=0 cost=108000 |
| | | |
| | 10:EXCHANGE [BROADCAST] |
| | | mem-estimate=10.74MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=186B cardinality=108.00K cost=143530 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=4 instances=4 |
| | Per-Instance Resources: mem-estimate=20.74MB mem-reservation=4.50MB thread-reservation=1 |
| | max-parallelism=4 segment-costs=[783679] |
| | 16:TUPLE CACHE |
| | | cache key: 39981d71123ba1933de6a6cac811e5cd |
| | | input scan node ids: 1 |
| | | estimated serialized size: 19.60MB |
| | | estimated serialized size per node: 4.90MB |
| | | cumulative processing cost: 727024 |
| | | cache read processing cost: 14353 |
| | | cache write processing cost: 55489 |
| | | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | tuple-ids=1 row-size=186B cardinality=108.00K cost=0 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | 01:SCAN HDFS [tpcds_partitioned_parquet_snap.item, RANDOM] |
| | HDFS partitions=1/1 files=1 size=33.54MB |
| | deterministic scan range assignment: true |
| | schedule scan ranges oldest to newest: true |
| | predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | stored statistics: |
| | table: rows=360.00K size=33.54MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=101.54K |
| | parquet statistics predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | parquet dictionary predicates: i_category IN ('Books', 'Home', 'Jewelry') |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=1 row-size=186B cardinality=108.00K cost=727024 |
| | in pipelines: 01(GETNEXT) |
| | |
| 03:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=01 |
| | 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=0,2 row-size=20B cardinality=73.14M cost=32014113 |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--F07:PLAN FRAGMENT [RANDOM] hosts=10 instances=10 |
| | | Per-Instance Resources: mem-estimate=6.83MB mem-reservation=6.81MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | | max-parallelism=10 segment-costs=[71] |
| | JOIN BUILD |
| | | join-table-id=01 plan-id=02 cohort-id=01 |
| | | build expressions: d_date_sk |
| | | runtime filters: RF002[bloom] <- d_date_sk |
| | | mem-estimate=5.81MB mem-reservation=5.81MB spill-buffer=64.00KB thread-reservation=0 cost=31 |
| | | |
| | 09:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=8B cardinality=31 cost=40 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=20.05MB mem-reservation=5.00MB thread-reservation=1 |
| | max-parallelism=1 segment-costs=[12521] |
| | 15:TUPLE CACHE |
| | | cache key: ddcd0463ed8acb9dfd16a906a3d9a5cd |
| | | input scan node ids: 2 |
| | | estimated serialized size: 372B |
| | | estimated serialized size per node: 372B |
| | | cumulative processing cost: 12520 |
| | | cache read processing cost: 4 |
| | | cache write processing cost: 1 |
| | | mem-estimate=4.00MB mem-reservation=4.00MB spill-buffer=2.00MB thread-reservation=0 |
| | | tuple-ids=2 row-size=8B cardinality=31 cost=0 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | 02:SCAN HDFS [tpcds_partitioned_parquet_snap.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.17MB |
| | deterministic scan range assignment: true |
| | schedule scan ranges oldest to newest: true |
| | predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | stored statistics: |
| | table: rows=73.05K size=2.17MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | parquet dictionary predicates: d_date <= DATE '1998-06-07', d_date >= DATE '1998-05-08' |
| | mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| | tuple-ids=2 row-size=8B cardinality=31 cost=12520 |
| | in pipelines: 02(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_partitioned_parquet_snap.catalog_sales, RANDOM] |
| HDFS partitions=1831/1831 files=1831 size=280.96GB |
| runtime filters: RF001[min_max] -> cs_item_sk, RF000[bloom] -> cs_item_sk, RF002[bloom] -> cs_sold_date_sk |
| stored statistics: |
| table: rows=4.32G size=280.96GB |
| partitions: 1831/1831 rows=4.32G |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=21.52M est-scan-range=31(filtered from 1831) |
| mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| tuple-ids=0 row-size=12B cardinality=73.14M(filtered from 4.32G) cost=12638882 |
| in pipelines: 00(GETNEXT) |
| ==== |