| # TPCDS-Q6 |
| select * from ( |
| select a.ca_state state, count(*) cnt |
| from customer_address a |
| ,customer c |
| ,store_sales s |
| ,date_dim d |
| ,item i |
| where |
| a.ca_address_sk = c.c_current_addr_sk |
| and c.c_customer_sk = s.ss_customer_sk |
| and s.ss_sold_date_sk = d.d_date_sk |
| and s.ss_item_sk = i.i_item_sk |
| and d.d_month_seq = |
| (select distinct (d_month_seq) |
| from date_dim |
| where d_year = 1999 |
| and d_moy = 1 |
| limit 1) |
| and i.i_current_price > 1.2 * |
| (select avg(j.i_current_price) |
| from item j |
| where j.i_category = i.i_category) |
| group by a.ca_state |
| having count(*) >= 10 |
| order by cnt limit 100) as t |
| ---- PLAN |
| Max Per-Host Resource Reservation: Memory=24.50MB Threads=8 |
| Per-Host Resource Estimates: Memory=290MB |
| F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=289.75MB mem-reservation=24.50MB thread-reservation=8 runtime-filters-memory=6.00MB |
| PLAN-ROOT SINK |
| | output exprs: a.ca_state, count(*) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 16:TOP-N [LIMIT=100] |
| | order by: count(*) ASC |
| | mem-estimate=110B mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=22B cardinality=5 |
| | in pipelines: 16(GETNEXT), 15(OPEN) |
| | |
| 15:AGGREGATE [FINALIZE] |
| | output: count(*) |
| | group by: a.ca_state |
| | having: count(*) >= CAST(10 AS BIGINT) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=5 |
| | in pipelines: 15(GETNEXT), 02(OPEN) |
| | |
| 14:HASH JOIN [LEFT SEMI JOIN] |
| | hash predicates: i.i_category = j.i_category |
| | other join predicates: i.i_current_price > CAST(1.2 AS DECIMAL(2,1)) * avg(j.i_current_price) |
| | runtime filters: RF000[bloom] <- j.i_category |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=1.19K |
| | in pipelines: 02(GETNEXT), 08(OPEN) |
| | |
| |--08:AGGREGATE [FINALIZE] |
| | | output: avg(j.i_current_price) |
| | | group by: j.i_category |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=10 row-size=26B cardinality=10 |
| | | in pipelines: 08(GETNEXT), 07(OPEN) |
| | | |
| | 07:SCAN HDFS [tpcds_parquet.item j] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | mem-estimate=32.00MB mem-reservation=128.00KB thread-reservation=1 |
| | tuple-ids=8 row-size=22B cardinality=18.00K |
| | in pipelines: 07(GETNEXT) |
| | |
| 13:HASH JOIN [LEFT SEMI JOIN] |
| | hash predicates: d.d_month_seq = (d_month_seq) |
| | runtime filters: RF002[bloom] <- (d_month_seq) |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=1.19K |
| | in pipelines: 02(GETNEXT), 06(OPEN) |
| | |
| |--06:AGGREGATE [FINALIZE] |
| | | group by: (d_month_seq) |
| | | limit: 1 |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 06(GETNEXT), 05(OPEN) |
| | | |
| | 05:SCAN HDFS [tpcds_parquet.date_dim] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: d_year = CAST(1999 AS INT), d_moy = CAST(1 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: d_year = CAST(1999 AS INT), d_moy = CAST(1 AS INT) |
| | parquet dictionary predicates: d_year = CAST(1999 AS INT), d_moy = CAST(1 AS INT) |
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=5 row-size=12B cardinality=108 |
| | in pipelines: 05(GETNEXT) |
| | |
| 12:HASH JOIN [INNER JOIN] |
| | hash predicates: s.ss_item_sk = i.i_item_sk |
| | fk/pk conjuncts: s.ss_item_sk = i.i_item_sk |
| | runtime filters: RF004[bloom] <- i.i_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 04(OPEN) |
| | |
| |--04:SCAN HDFS [tpcds_parquet.item i] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | runtime filters: RF000[bloom] -> i.i_category |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=4 row-size=30B cardinality=18.00K |
| | in pipelines: 04(GETNEXT) |
| | |
| 11:HASH JOIN [INNER JOIN] |
| | hash predicates: s.ss_sold_date_sk = d.d_date_sk |
| | fk/pk conjuncts: s.ss_sold_date_sk = d.d_date_sk |
| | runtime filters: RF006[bloom] <- d.d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3 row-size=50B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 03(OPEN) |
| | |
| |--03:SCAN HDFS [tpcds_parquet.date_dim d] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | runtime filters: RF002[bloom] -> d.d_month_seq |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=3 row-size=8B cardinality=73.05K |
| | in pipelines: 03(GETNEXT) |
| | |
| 10:HASH JOIN [INNER JOIN] |
| | hash predicates: c.c_current_addr_sk = a.ca_address_sk |
| | fk/pk conjuncts: c.c_current_addr_sk = a.ca_address_sk |
| | runtime filters: RF008[bloom] <- a.ca_address_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0 row-size=42B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 00(OPEN) |
| | |
| |--00:SCAN HDFS [tpcds_parquet.customer_address a] |
| | HDFS partitions=1/1 files=1 size=1.16MB |
| | stored statistics: |
| | table: rows=50.00K size=1.16MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=50.00K |
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=0 row-size=18B cardinality=50.00K |
| | in pipelines: 00(GETNEXT) |
| | |
| 09:HASH JOIN [INNER JOIN] |
| | hash predicates: s.ss_customer_sk = c.c_customer_sk |
| | fk/pk conjuncts: s.ss_customer_sk = c.c_customer_sk |
| | runtime filters: RF010[bloom] <- c.c_customer_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1 row-size=24B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 01(OPEN) |
| | |
| |--01:SCAN HDFS [tpcds_parquet.customer c] |
| | HDFS partitions=1/1 files=1 size=5.49MB |
| | runtime filters: RF008[bloom] -> c.c_current_addr_sk |
| | stored statistics: |
| | table: rows=100.00K size=5.49MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=100.00K |
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| | tuple-ids=1 row-size=8B cardinality=100.00K |
| | in pipelines: 01(GETNEXT) |
| | |
| 02:SCAN HDFS [tpcds_parquet.store_sales s] |
| HDFS partitions=1824/1824 files=1824 size=200.95MB |
| runtime filters: RF004[bloom] -> s.ss_item_sk, RF006[bloom] -> s.ss_sold_date_sk, RF010[bloom] -> s.ss_customer_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=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| tuple-ids=2 row-size=16B cardinality=2.88M |
| in pipelines: 02(GETNEXT) |
| ---- DISTRIBUTEDPLAN |
| Max Per-Host Resource Reservation: Memory=35.81MB Threads=19 |
| Per-Host Resource Estimates: Memory=340MB |
| F11:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: a.ca_state, count(*) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 30:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: count(*) ASC |
| | limit: 100 |
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=22B cardinality=5 |
| | in pipelines: 16(GETNEXT) |
| | |
| F10:PLAN FRAGMENT [HASH(a.ca_state)] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1 |
| 16:TOP-N [LIMIT=100] |
| | order by: count(*) ASC |
| | mem-estimate=110B mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=22B cardinality=5 |
| | in pipelines: 16(GETNEXT), 29(OPEN) |
| | |
| 29:AGGREGATE [FINALIZE] |
| | output: count:merge(*) |
| | group by: a.ca_state |
| | having: count(*) >= CAST(10 AS BIGINT) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=5 |
| | in pipelines: 29(GETNEXT), 02(OPEN) |
| | |
| 28:EXCHANGE [HASH(a.ca_state)] |
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=51 |
| | in pipelines: 02(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=62.43MB mem-reservation=20.62MB thread-reservation=2 runtime-filters-memory=6.00MB |
| 15:AGGREGATE [STREAMING] |
| | output: count(*) |
| | group by: a.ca_state |
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=51 |
| | in pipelines: 02(GETNEXT) |
| | |
| 14:HASH JOIN [LEFT SEMI JOIN, BROADCAST] |
| | hash predicates: i.i_category = j.i_category |
| | other join predicates: i.i_current_price > CAST(1.2 AS DECIMAL(2,1)) * avg(j.i_current_price) |
| | runtime filters: RF000[bloom] <- j.i_category |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=1.19K |
| | in pipelines: 02(GETNEXT), 26(OPEN) |
| | |
| |--27:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=10 row-size=26B cardinality=10 |
| | | in pipelines: 26(GETNEXT) |
| | | |
| | F09:PLAN FRAGMENT [HASH(j.i_category)] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1 |
| | 26:AGGREGATE [FINALIZE] |
| | | output: avg:merge(j.i_current_price) |
| | | group by: j.i_category |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=10 row-size=26B cardinality=10 |
| | | in pipelines: 26(GETNEXT), 07(OPEN) |
| | | |
| | 25:EXCHANGE [HASH(j.i_category)] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=9 row-size=26B cardinality=10 |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | F08:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=42.00MB mem-reservation=2.12MB thread-reservation=2 |
| | 08:AGGREGATE [STREAMING] |
| | | output: avg(j.i_current_price) |
| | | group by: j.i_category |
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=9 row-size=26B cardinality=10 |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | 07:SCAN HDFS [tpcds_parquet.item j, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | mem-estimate=32.00MB mem-reservation=128.00KB thread-reservation=1 |
| | tuple-ids=8 row-size=22B cardinality=18.00K |
| | in pipelines: 07(GETNEXT) |
| | |
| 13:HASH JOIN [LEFT SEMI JOIN, BROADCAST] |
| | hash predicates: d.d_month_seq = (d_month_seq) |
| | runtime filters: RF002[bloom] <- (d_month_seq) |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=1.19K |
| | in pipelines: 02(GETNEXT), 22(OPEN) |
| | |
| |--24:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 22(GETNEXT) |
| | | |
| | F07:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1 |
| | 23:EXCHANGE [UNPARTITIONED] |
| | | limit: 1 |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 22(GETNEXT) |
| | | |
| | F06:PLAN FRAGMENT [HASH((d_month_seq))] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1 |
| | 22:AGGREGATE [FINALIZE] |
| | | group by: (d_month_seq) |
| | | limit: 1 |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 22(GETNEXT), 05(OPEN) |
| | | |
| | 21:EXCHANGE [HASH((d_month_seq))] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=108 |
| | | in pipelines: 05(GETNEXT) |
| | | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=58.00MB mem-reservation=2.25MB thread-reservation=2 |
| | 06:AGGREGATE [STREAMING] |
| | | group by: (d_month_seq) |
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=108 |
| | | in pipelines: 05(GETNEXT) |
| | | |
| | 05:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: d_year = CAST(1999 AS INT), d_moy = CAST(1 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: d_year = CAST(1999 AS INT), d_moy = CAST(1 AS INT) |
| | parquet dictionary predicates: d_year = CAST(1999 AS INT), d_moy = CAST(1 AS INT) |
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=5 row-size=12B cardinality=108 |
| | in pipelines: 05(GETNEXT) |
| | |
| 12:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: s.ss_item_sk = i.i_item_sk |
| | fk/pk conjuncts: s.ss_item_sk = i.i_item_sk |
| | runtime filters: RF004[bloom] <- i.i_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 04(OPEN) |
| | |
| |--20:EXCHANGE [BROADCAST] |
| | | mem-estimate=559.39KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=4 row-size=30B cardinality=18.00K |
| | | in pipelines: 04(GETNEXT) |
| | | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=49.00MB mem-reservation=1.25MB thread-reservation=2 runtime-filters-memory=1.00MB |
| | 04:SCAN HDFS [tpcds_parquet.item i, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | runtime filters: RF000[bloom] -> i.i_category |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | mem-estimate=48.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=4 row-size=30B cardinality=18.00K |
| | in pipelines: 04(GETNEXT) |
| | |
| 11:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: s.ss_sold_date_sk = d.d_date_sk |
| | fk/pk conjuncts: s.ss_sold_date_sk = d.d_date_sk |
| | runtime filters: RF006[bloom] <- d.d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3 row-size=50B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 03(OPEN) |
| | |
| |--19:EXCHANGE [BROADCAST] |
| | | mem-estimate=582.70KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=8B cardinality=73.05K |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F03: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 |
| | 03:SCAN HDFS [tpcds_parquet.date_dim d, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | runtime filters: RF002[bloom] -> d.d_month_seq |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=3 row-size=8B cardinality=73.05K |
| | in pipelines: 03(GETNEXT) |
| | |
| 10:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: c.c_current_addr_sk = a.ca_address_sk |
| | fk/pk conjuncts: c.c_current_addr_sk = a.ca_address_sk |
| | runtime filters: RF008[bloom] <- a.ca_address_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0 row-size=42B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 00(OPEN) |
| | |
| |--18:EXCHANGE [BROADCAST] |
| | | mem-estimate=900.91KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=0 row-size=18B cardinality=50.00K |
| | | in pipelines: 00(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2 |
| | 00:SCAN HDFS [tpcds_parquet.customer_address a, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.16MB |
| | stored statistics: |
| | table: rows=50.00K size=1.16MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=50.00K |
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1 |
| | tuple-ids=0 row-size=18B cardinality=50.00K |
| | in pipelines: 00(GETNEXT) |
| | |
| 09:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: s.ss_customer_sk = c.c_customer_sk |
| | fk/pk conjuncts: s.ss_customer_sk = c.c_customer_sk |
| | runtime filters: RF010[bloom] <- c.c_customer_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1 row-size=24B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 01(OPEN) |
| | |
| |--17:EXCHANGE [BROADCAST] |
| | | mem-estimate=793.25KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=8B cardinality=100.00K |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F01: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 |
| | 01:SCAN HDFS [tpcds_parquet.customer c, RANDOM] |
| | HDFS partitions=1/1 files=1 size=5.49MB |
| | runtime filters: RF008[bloom] -> c.c_current_addr_sk |
| | stored statistics: |
| | table: rows=100.00K size=5.49MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=100.00K |
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| | tuple-ids=1 row-size=8B cardinality=100.00K |
| | in pipelines: 01(GETNEXT) |
| | |
| 02:SCAN HDFS [tpcds_parquet.store_sales s, RANDOM] |
| HDFS partitions=1824/1824 files=1824 size=200.95MB |
| runtime filters: RF004[bloom] -> s.ss_item_sk, RF006[bloom] -> s.ss_sold_date_sk, RF010[bloom] -> s.ss_customer_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=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| tuple-ids=2 row-size=16B cardinality=2.88M |
| in pipelines: 02(GETNEXT) |
| ---- PARALLELPLANS |
| Max Per-Host Resource Reservation: Memory=55.38MB Threads=20 |
| Per-Host Resource Estimates: Memory=246MB |
| F11:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: a.ca_state, count(*) |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 30:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: count(*) ASC |
| | limit: 100 |
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=22B cardinality=5 |
| | in pipelines: 16(GETNEXT) |
| | |
| F10:PLAN FRAGMENT [HASH(a.ca_state)] hosts=3 instances=6 |
| Per-Instance Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1 |
| 16:TOP-N [LIMIT=100] |
| | order by: count(*) ASC |
| | mem-estimate=110B mem-reservation=0B thread-reservation=0 |
| | tuple-ids=13 row-size=22B cardinality=5 |
| | in pipelines: 16(GETNEXT), 29(OPEN) |
| | |
| 29:AGGREGATE [FINALIZE] |
| | output: count:merge(*) |
| | group by: a.ca_state |
| | having: count(*) >= CAST(10 AS BIGINT) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=5 |
| | in pipelines: 29(GETNEXT), 02(OPEN) |
| | |
| 28:EXCHANGE [HASH(a.ca_state)] |
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=51 |
| | in pipelines: 02(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=6 |
| Per-Host Shared Resources: mem-estimate=3.00MB mem-reservation=3.00MB thread-reservation=0 runtime-filters-memory=3.00MB |
| Per-Instance Resources: mem-estimate=26.00MB mem-reservation=3.00MB thread-reservation=1 |
| 15:AGGREGATE [STREAMING] |
| | output: count(*) |
| | group by: a.ca_state |
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=12 row-size=22B cardinality=51 |
| | in pipelines: 02(GETNEXT) |
| | |
| 14:HASH JOIN [LEFT SEMI JOIN, BROADCAST] |
| | hash-table-id=00 |
| | hash predicates: i.i_category = j.i_category |
| | other join predicates: i.i_current_price > CAST(1.2 AS DECIMAL(2,1)) * avg(j.i_current_price) |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=1.19K |
| | in pipelines: 02(GETNEXT), 26(OPEN) |
| | |
| |--F12: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=00 plan-id=01 cohort-id=01 |
| | | build expressions: j.i_category |
| | | runtime filters: RF000[bloom] <- j.i_category |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 27:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=10 row-size=26B cardinality=10 |
| | | in pipelines: 26(GETNEXT) |
| | | |
| | F09:PLAN FRAGMENT [HASH(j.i_category)] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1 |
| | 26:AGGREGATE [FINALIZE] |
| | | output: avg:merge(j.i_current_price) |
| | | group by: j.i_category |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=10 row-size=26B cardinality=10 |
| | | in pipelines: 26(GETNEXT), 07(OPEN) |
| | | |
| | 25:EXCHANGE [HASH(j.i_category)] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=9 row-size=26B cardinality=10 |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | F08:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=26.00MB mem-reservation=2.12MB thread-reservation=1 |
| | 08:AGGREGATE [STREAMING] |
| | | output: avg(j.i_current_price) |
| | | group by: j.i_category |
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=9 row-size=26B cardinality=10 |
| | | in pipelines: 07(GETNEXT) |
| | | |
| | 07:SCAN HDFS [tpcds_parquet.item j, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | mem-estimate=16.00MB mem-reservation=128.00KB thread-reservation=0 |
| | tuple-ids=8 row-size=22B cardinality=18.00K |
| | in pipelines: 07(GETNEXT) |
| | |
| 13:HASH JOIN [LEFT SEMI JOIN, BROADCAST] |
| | hash-table-id=01 |
| | hash predicates: d.d_month_seq = (d_month_seq) |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=1.19K |
| | in pipelines: 02(GETNEXT), 22(OPEN) |
| | |
| |--F13: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=01 plan-id=02 cohort-id=01 |
| | | build expressions: (d_month_seq) |
| | | runtime filters: RF002[bloom] <- (d_month_seq) |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 24:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 22(GETNEXT) |
| | | |
| | F07:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00KB mem-reservation=0B thread-reservation=1 |
| | 23:EXCHANGE [UNPARTITIONED] |
| | | limit: 1 |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 22(GETNEXT) |
| | | |
| | F06:PLAN FRAGMENT [HASH((d_month_seq))] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1 |
| | 22:AGGREGATE [FINALIZE] |
| | | group by: (d_month_seq) |
| | | limit: 1 |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=1 |
| | | in pipelines: 22(GETNEXT), 05(OPEN) |
| | | |
| | 21:EXCHANGE [HASH((d_month_seq))] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=108 |
| | | in pipelines: 05(GETNEXT) |
| | | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=26.00MB mem-reservation=2.25MB thread-reservation=1 |
| | 06:AGGREGATE [STREAMING] |
| | | group by: (d_month_seq) |
| | | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=6 row-size=4B cardinality=108 |
| | | in pipelines: 05(GETNEXT) |
| | | |
| | 05:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: d_year = CAST(1999 AS INT), d_moy = CAST(1 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: d_year = CAST(1999 AS INT), d_moy = CAST(1 AS INT) |
| | parquet dictionary predicates: d_year = CAST(1999 AS INT), d_moy = CAST(1 AS INT) |
| | mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0 |
| | tuple-ids=5 row-size=12B cardinality=108 |
| | in pipelines: 05(GETNEXT) |
| | |
| 12:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=02 |
| | hash predicates: s.ss_item_sk = i.i_item_sk |
| | fk/pk conjuncts: s.ss_item_sk = i.i_item_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3,4 row-size=80B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 04(OPEN) |
| | |
| |--F14:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=5.42MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=02 plan-id=03 cohort-id=01 |
| | | build expressions: i.i_item_sk |
| | | runtime filters: RF004[bloom] <- i.i_item_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 20:EXCHANGE [BROADCAST] |
| | | mem-estimate=559.39KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=4 row-size=30B cardinality=18.00K |
| | | in pipelines: 04(GETNEXT) |
| | | |
| | F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Shared Resources: mem-estimate=1.00MB mem-reservation=1.00MB thread-reservation=0 runtime-filters-memory=1.00MB |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1 |
| | 04:SCAN HDFS [tpcds_parquet.item i, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | runtime filters: RF000[bloom] -> i.i_category |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=30B cardinality=18.00K |
| | in pipelines: 04(GETNEXT) |
| | |
| 11:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=03 |
| | hash predicates: s.ss_sold_date_sk = d.d_date_sk |
| | fk/pk conjuncts: s.ss_sold_date_sk = d.d_date_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0,3 row-size=50B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 03(OPEN) |
| | |
| |--F15:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=5.44MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=03 plan-id=04 cohort-id=01 |
| | | build expressions: d.d_date_sk |
| | | runtime filters: RF006[bloom] <- d.d_date_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 19:EXCHANGE [BROADCAST] |
| | | mem-estimate=582.70KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=8B cardinality=73.05K |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F03: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 |
| | 03:SCAN HDFS [tpcds_parquet.date_dim d, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | runtime filters: RF002[bloom] -> d.d_month_seq |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=3 row-size=8B cardinality=73.05K |
| | in pipelines: 03(GETNEXT) |
| | |
| 10:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=04 |
| | hash predicates: c.c_current_addr_sk = a.ca_address_sk |
| | fk/pk conjuncts: c.c_current_addr_sk = a.ca_address_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1,0 row-size=42B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 00(OPEN) |
| | |
| |--F16:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=5.75MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=04 plan-id=05 cohort-id=01 |
| | | build expressions: a.ca_address_sk |
| | | runtime filters: RF008[bloom] <- a.ca_address_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 18:EXCHANGE [BROADCAST] |
| | | mem-estimate=900.91KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=0 row-size=18B cardinality=50.00K |
| | | in pipelines: 00(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=1 |
| | 00:SCAN HDFS [tpcds_parquet.customer_address a, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.16MB |
| | stored statistics: |
| | table: rows=50.00K size=1.16MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=50.00K |
| | mem-estimate=16.00MB mem-reservation=256.00KB thread-reservation=0 |
| | tuple-ids=0 row-size=18B cardinality=50.00K |
| | in pipelines: 00(GETNEXT) |
| | |
| 09:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=05 |
| | hash predicates: s.ss_customer_sk = c.c_customer_sk |
| | fk/pk conjuncts: s.ss_customer_sk = c.c_customer_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=2,1 row-size=24B cardinality=2.88M |
| | in pipelines: 02(GETNEXT), 01(OPEN) |
| | |
| |--F17:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=5.65MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=05 plan-id=06 cohort-id=01 |
| | | build expressions: c.c_customer_sk |
| | | runtime filters: RF010[bloom] <- c.c_customer_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 17:EXCHANGE [BROADCAST] |
| | | mem-estimate=793.25KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=8B cardinality=100.00K |
| | | in pipelines: 01(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=16.00MB mem-reservation=1.00MB thread-reservation=1 |
| | 01:SCAN HDFS [tpcds_parquet.customer c, RANDOM] |
| | HDFS partitions=1/1 files=1 size=5.49MB |
| | runtime filters: RF008[bloom] -> c.c_current_addr_sk |
| | stored statistics: |
| | table: rows=100.00K size=5.49MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=100.00K |
| | mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| | tuple-ids=1 row-size=8B cardinality=100.00K |
| | in pipelines: 01(GETNEXT) |
| | |
| 02:SCAN HDFS [tpcds_parquet.store_sales s, RANDOM] |
| HDFS partitions=1824/1824 files=1824 size=200.95MB |
| runtime filters: RF004[bloom] -> s.ss_item_sk, RF006[bloom] -> s.ss_sold_date_sk, RF010[bloom] -> s.ss_customer_sk |
| stored statistics: |
| table: rows=2.88M size=200.95MB |
| partitions: 1824/1824 rows=2.88M |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=130.09K |
| mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| tuple-ids=2 row-size=16B cardinality=2.88M |
| in pipelines: 02(GETNEXT) |
| ==== |