| # TPCDS-Q34 |
| select |
| c_last_name, |
| c_first_name, |
| c_salutation, |
| c_preferred_cust_flag, |
| ss_ticket_number, |
| cnt |
| from |
| (select |
| ss_ticket_number, |
| ss_customer_sk, |
| count(*) cnt |
| from |
| store_sales, |
| date_dim, |
| store, |
| household_demographics |
| where |
| store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| and store_sales.ss_store_sk = store.s_store_sk |
| and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| and (date_dim.d_dom between 1 and 3 |
| or date_dim.d_dom between 25 and 28) |
| and (household_demographics.hd_buy_potential = '>10000' |
| or household_demographics.hd_buy_potential = 'unknown') |
| and household_demographics.hd_vehicle_count > 0 |
| and (case when household_demographics.hd_vehicle_count > 0 then household_demographics.hd_dep_count / household_demographics.hd_vehicle_count else null end) > 1.2 |
| and date_dim.d_year in (1998, 1998 + 1, 1998 + 2) |
| and store.s_county in ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| group by |
| ss_ticket_number, |
| ss_customer_sk |
| ) dn, |
| customer |
| where |
| ss_customer_sk = c_customer_sk |
| and cnt between 15 and 20 |
| order by |
| c_last_name, |
| c_first_name, |
| c_salutation, |
| c_preferred_cust_flag desc |
| limit 100000 |
| ---- PLAN |
| Max Per-Host Resource Reservation: Memory=14.75MB Threads=6 |
| Per-Host Resource Estimates: Memory=298MB |
| F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=297.81MB mem-reservation=14.75MB thread-reservation=6 runtime-filters-memory=4.00MB |
| PLAN-ROOT SINK |
| | output exprs: c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 10:TOP-N [LIMIT=100000] |
| | order by: c_last_name ASC, c_first_name ASC, c_salutation ASC, c_preferred_cust_flag DESC |
| | mem-estimate=246.96KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=7 row-size=80B cardinality=3.15K |
| | in pipelines: 10(GETNEXT), 08(OPEN) |
| | |
| 09:HASH JOIN [INNER JOIN] |
| | hash predicates: c_customer_sk = ss_customer_sk |
| | fk/pk conjuncts: none |
| | runtime filters: RF000[bloom] <- ss_customer_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=6,4 row-size=88B cardinality=3.15K |
| | in pipelines: 08(GETNEXT), 07(OPEN) |
| | |
| |--07:AGGREGATE [FINALIZE] |
| | | output: count(*) |
| | | group by: ss_ticket_number, ss_customer_sk |
| | | having: count(*) <= CAST(20 AS BIGINT), count(*) >= CAST(15 AS BIGINT) |
| | | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=4 row-size=20B cardinality=3.15K |
| | | in pipelines: 07(GETNEXT), 00(OPEN) |
| | | |
| | 06:HASH JOIN [INNER JOIN] |
| | | hash predicates: store_sales.ss_store_sk = store.s_store_sk |
| | | fk/pk conjuncts: store_sales.ss_store_sk = store.s_store_sk |
| | | runtime filters: RF002[bloom] <- store.s_store_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=0,3,1,2 row-size=101B cardinality=31.53K |
| | | in pipelines: 00(GETNEXT), 02(OPEN) |
| | | |
| | |--02:SCAN HDFS [tpcds_parquet.store] |
| | | HDFS partitions=1/1 files=1 size=9.93KB |
| | | predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | | stored statistics: |
| | | table: rows=12 size=9.93KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=12 |
| | | parquet statistics predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | | parquet dictionary predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | | tuple-ids=2 row-size=33B cardinality=12 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | 05:HASH JOIN [INNER JOIN] |
| | | hash predicates: store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| | | fk/pk conjuncts: store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| | | runtime filters: RF004[bloom] <- date_dim.d_date_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=0,3,1 row-size=68B cardinality=31.53K |
| | | in pipelines: 00(GETNEXT), 01(OPEN) |
| | | |
| | |--01:SCAN HDFS [tpcds_parquet.date_dim] |
| | | HDFS partitions=1/1 files=1 size=2.15MB |
| | | predicates: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)), (date_dim.d_dom >= CAST(1 AS INT) AND date_dim.d_dom <= CAST(3 AS INT) OR date_dim.d_dom >= CAST(25 AS INT) AND date_dim.d_dom <= CAST(28 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: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)) |
| | | parquet dictionary predicates: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)), (date_dim.d_dom >= CAST(1 AS INT) AND date_dim.d_dom <= CAST(3 AS INT) OR date_dim.d_dom >= CAST(25 AS INT) AND date_dim.d_dom <= CAST(28 AS INT)) |
| | | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1 |
| | | tuple-ids=1 row-size=12B cardinality=354 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | 04:HASH JOIN [INNER JOIN] |
| | | hash predicates: store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| | | fk/pk conjuncts: store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| | | runtime filters: RF006[bloom] <- household_demographics.hd_demo_sk |
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | | tuple-ids=0,3 row-size=56B cardinality=162.45K |
| | | in pipelines: 00(GETNEXT), 03(OPEN) |
| | | |
| | |--03:SCAN HDFS [tpcds_parquet.household_demographics] |
| | | HDFS partitions=1/1 files=1 size=41.69KB |
| | | predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown'), (CASE WHEN household_demographics.hd_vehicle_count > CAST(0 AS INT) THEN CAST(household_demographics.hd_dep_count AS DOUBLE) / CAST(household_demographics.hd_vehicle_count AS DOUBLE) ELSE NULL END) > CAST(1.2 AS DOUBLE) |
| | | stored statistics: |
| | | table: rows=7.20K size=41.69KB |
| | | columns: all |
| | | extrapolated-rows=disabled max-scan-range-rows=7.20K |
| | | parquet statistics predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown') |
| | | parquet dictionary predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown') |
| | | mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=1 |
| | | tuple-ids=3 row-size=32B cardinality=416 |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | 00:SCAN HDFS [tpcds_parquet.store_sales] |
| | HDFS partitions=1824/1824 files=1824 size=201.02MB |
| | runtime filters: RF002[bloom] -> store_sales.ss_store_sk, RF004[bloom] -> store_sales.ss_sold_date_sk, RF006[bloom] -> store_sales.ss_hdemo_sk |
| | stored statistics: |
| | table: rows=2.88M size=201.02MB |
| | partitions: 1824/1824 rows=2.88M |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=130.09K |
| | mem-estimate=64.00MB mem-reservation=2.00MB thread-reservation=1 |
| | tuple-ids=0 row-size=24B cardinality=2.88M |
| | in pipelines: 00(GETNEXT) |
| | |
| 08:SCAN HDFS [tpcds_parquet.customer] |
| HDFS partitions=1/1 files=1 size=5.49MB |
| runtime filters: RF000[bloom] -> c_customer_sk |
| stored statistics: |
| table: rows=100.00K size=5.49MB |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=100.00K |
| mem-estimate=80.00MB mem-reservation=1.00MB thread-reservation=1 |
| tuple-ids=6 row-size=68B cardinality=100.00K |
| in pipelines: 08(GETNEXT) |
| ---- DISTRIBUTEDPLAN |
| Max Per-Host Resource Reservation: Memory=26.83MB Threads=13 |
| Per-Host Resource Estimates: Memory=335MB |
| F07:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=331.17KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 18:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: c_last_name ASC, c_first_name ASC, c_salutation ASC, c_preferred_cust_flag DESC |
| | limit: 100000 |
| | mem-estimate=331.17KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=7 row-size=80B cardinality=3.15K |
| | in pipelines: 10(GETNEXT) |
| | |
| F06:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=1 instances=1 |
| Per-Host Resources: mem-estimate=16.17MB mem-reservation=9.50MB thread-reservation=1 runtime-filters-memory=1.00MB |
| 10:TOP-N [LIMIT=100000] |
| | order by: c_last_name ASC, c_first_name ASC, c_salutation ASC, c_preferred_cust_flag DESC |
| | mem-estimate=246.96KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=7 row-size=80B cardinality=3.15K |
| | in pipelines: 10(GETNEXT), 15(OPEN) |
| | |
| 09:HASH JOIN [INNER JOIN, PARTITIONED] |
| | hash predicates: ss_customer_sk = c_customer_sk |
| | fk/pk conjuncts: none |
| | runtime filters: RF000[bloom] <- c_customer_sk |
| | mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=4,6 row-size=88B cardinality=3.15K |
| | in pipelines: 15(GETNEXT), 08(OPEN) |
| | |
| |--17:EXCHANGE [HASH(c_customer_sk)] |
| | | mem-estimate=6.58MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=68B cardinality=100.00K |
| | | in pipelines: 08(GETNEXT) |
| | | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=80.00MB mem-reservation=1.00MB thread-reservation=2 |
| | 08:SCAN HDFS [tpcds_parquet.customer, RANDOM] |
| | HDFS partitions=1/1 files=1 size=5.49MB |
| | stored statistics: |
| | table: rows=100.00K size=5.49MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=100.00K |
| | mem-estimate=80.00MB mem-reservation=1.00MB thread-reservation=1 |
| | tuple-ids=6 row-size=68B cardinality=100.00K |
| | in pipelines: 08(GETNEXT) |
| | |
| 16:EXCHANGE [HASH(ss_customer_sk)] |
| | mem-estimate=92.53KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=3.15K |
| | in pipelines: 15(GETNEXT) |
| | |
| F04:PLAN FRAGMENT [HASH(ss_ticket_number,ss_customer_sk)] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=10.27MB mem-reservation=1.94MB thread-reservation=1 |
| 15:AGGREGATE [FINALIZE] |
| | output: count:merge(*) |
| | group by: ss_ticket_number, ss_customer_sk |
| | having: count(*) <= CAST(20 AS BIGINT), count(*) >= CAST(15 AS BIGINT) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=3.15K |
| | in pipelines: 15(GETNEXT), 00(OPEN) |
| | |
| 14:EXCHANGE [HASH(ss_ticket_number,ss_customer_sk)] |
| | mem-estimate=277.27KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=31.53K |
| | in pipelines: 00(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| Per-Host Resources: mem-estimate=83.87MB mem-reservation=13.81MB thread-reservation=2 runtime-filters-memory=4.00MB |
| 07:AGGREGATE [STREAMING] |
| | output: count(*) |
| | group by: ss_ticket_number, ss_customer_sk |
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=31.53K |
| | in pipelines: 00(GETNEXT) |
| | |
| 06:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: store_sales.ss_store_sk = store.s_store_sk |
| | fk/pk conjuncts: store_sales.ss_store_sk = store.s_store_sk |
| | runtime filters: RF002[bloom] <- store.s_store_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,3,1,2 row-size=101B cardinality=31.53K |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--13:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=33B cardinality=12 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2 |
| | 02:SCAN HDFS [tpcds_parquet.store, RANDOM] |
| | HDFS partitions=1/1 files=1 size=9.93KB |
| | predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | stored statistics: |
| | table: rows=12 size=9.93KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=12 |
| | parquet statistics predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | parquet dictionary predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | tuple-ids=2 row-size=33B cardinality=12 |
| | in pipelines: 02(GETNEXT) |
| | |
| 05:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| | fk/pk conjuncts: store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| | runtime filters: RF004[bloom] <- date_dim.d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,3,1 row-size=68B cardinality=31.53K |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--12:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=12B cardinality=354 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2 |
| | 01:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)), (date_dim.d_dom >= CAST(1 AS INT) AND date_dim.d_dom <= CAST(3 AS INT) OR date_dim.d_dom >= CAST(25 AS INT) AND date_dim.d_dom <= CAST(28 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: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)) |
| | parquet dictionary predicates: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)), (date_dim.d_dom >= CAST(1 AS INT) AND date_dim.d_dom <= CAST(3 AS INT) OR date_dim.d_dom >= CAST(25 AS INT) AND date_dim.d_dom <= CAST(28 AS INT)) |
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=1 row-size=12B cardinality=354 |
| | in pipelines: 01(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| | fk/pk conjuncts: store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| | runtime filters: RF006[bloom] <- household_demographics.hd_demo_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,3 row-size=56B cardinality=162.45K |
| | in pipelines: 00(GETNEXT), 03(OPEN) |
| | |
| |--11:EXCHANGE [BROADCAST] |
| | | mem-estimate=27.22KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=32B cardinality=416 |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=2 |
| | 03:SCAN HDFS [tpcds_parquet.household_demographics, RANDOM] |
| | HDFS partitions=1/1 files=1 size=41.69KB |
| | predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown'), (CASE WHEN household_demographics.hd_vehicle_count > CAST(0 AS INT) THEN CAST(household_demographics.hd_dep_count AS DOUBLE) / CAST(household_demographics.hd_vehicle_count AS DOUBLE) ELSE NULL END) > CAST(1.2 AS DOUBLE) |
| | stored statistics: |
| | table: rows=7.20K size=41.69KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=7.20K |
| | parquet statistics predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown') |
| | parquet dictionary predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown') |
| | mem-estimate=64.00MB mem-reservation=64.00KB thread-reservation=1 |
| | tuple-ids=3 row-size=32B cardinality=416 |
| | in pipelines: 03(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_parquet.store_sales, RANDOM] |
| HDFS partitions=1824/1824 files=1824 size=201.02MB |
| runtime filters: RF000[bloom] -> tpcds_parquet.store_sales.ss_customer_sk, RF002[bloom] -> store_sales.ss_store_sk, RF004[bloom] -> store_sales.ss_sold_date_sk, RF006[bloom] -> store_sales.ss_hdemo_sk |
| stored statistics: |
| table: rows=2.88M size=201.02MB |
| partitions: 1824/1824 rows=2.88M |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=130.09K |
| mem-estimate=64.00MB mem-reservation=2.00MB thread-reservation=1 |
| tuple-ids=0 row-size=24B cardinality=2.88M |
| in pipelines: 00(GETNEXT) |
| ---- PARALLELPLANS |
| Max Per-Host Resource Reservation: Memory=41.58MB Threads=14 |
| Per-Host Resource Estimates: Memory=172MB |
| F07:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=331.17KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 18:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: c_last_name ASC, c_first_name ASC, c_salutation ASC, c_preferred_cust_flag DESC |
| | limit: 100000 |
| | mem-estimate=331.17KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=7 row-size=80B cardinality=3.15K |
| | in pipelines: 10(GETNEXT) |
| | |
| F06:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=1 instances=1 |
| Per-Instance Resources: mem-estimate=411.49KB mem-reservation=0B thread-reservation=1 |
| 10:TOP-N [LIMIT=100000] |
| | order by: c_last_name ASC, c_first_name ASC, c_salutation ASC, c_preferred_cust_flag DESC |
| | mem-estimate=246.96KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=7 row-size=80B cardinality=3.15K |
| | in pipelines: 10(GETNEXT), 15(OPEN) |
| | |
| 09:HASH JOIN [INNER JOIN, PARTITIONED] |
| | hash-table-id=00 |
| | hash predicates: ss_customer_sk = c_customer_sk |
| | fk/pk conjuncts: none |
| | mem-estimate=0B mem-reservation=0B spill-buffer=512.00KB thread-reservation=0 |
| | tuple-ids=4,6 row-size=88B cardinality=3.15K |
| | in pipelines: 15(GETNEXT), 08(OPEN) |
| | |
| |--F08:PLAN FRAGMENT [HASH(ss_customer_sk)] hosts=1 instances=1 |
| | | Per-Instance Resources: mem-estimate=16.08MB mem-reservation=9.50MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=00 plan-id=01 cohort-id=01 |
| | | build expressions: c_customer_sk |
| | | runtime filters: RF000[bloom] <- c_customer_sk |
| | | mem-estimate=8.50MB mem-reservation=8.50MB spill-buffer=512.00KB thread-reservation=0 |
| | | |
| | 17:EXCHANGE [HASH(c_customer_sk)] |
| | | mem-estimate=6.58MB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=6 row-size=68B cardinality=100.00K |
| | | in pipelines: 08(GETNEXT) |
| | | |
| | F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=1 |
| | 08:SCAN HDFS [tpcds_parquet.customer, RANDOM] |
| | HDFS partitions=1/1 files=1 size=5.49MB |
| | 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=6 row-size=68B cardinality=100.00K |
| | in pipelines: 08(GETNEXT) |
| | |
| 16:EXCHANGE [HASH(ss_customer_sk)] |
| | mem-estimate=164.53KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=3.15K |
| | in pipelines: 15(GETNEXT) |
| | |
| F04:PLAN FRAGMENT [HASH(ss_ticket_number,ss_customer_sk)] hosts=3 instances=6 |
| Per-Instance Resources: mem-estimate=10.34MB mem-reservation=1.94MB thread-reservation=1 |
| 15:AGGREGATE [FINALIZE] |
| | output: count:merge(*) |
| | group by: ss_ticket_number, ss_customer_sk |
| | having: count(*) <= CAST(20 AS BIGINT), count(*) >= CAST(15 AS BIGINT) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=3.15K |
| | in pipelines: 15(GETNEXT), 00(OPEN) |
| | |
| 14:EXCHANGE [HASH(ss_ticket_number,ss_customer_sk)] |
| | mem-estimate=349.27KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=31.53K |
| | in pipelines: 00(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=6 |
| Per-Host Shared Resources: mem-estimate=4.00MB mem-reservation=4.00MB thread-reservation=0 runtime-filters-memory=4.00MB |
| Per-Instance Resources: mem-estimate=26.00MB mem-reservation=4.00MB thread-reservation=1 |
| 07:AGGREGATE [STREAMING] |
| | output: count(*) |
| | group by: ss_ticket_number, ss_customer_sk |
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=20B cardinality=31.53K |
| | in pipelines: 00(GETNEXT) |
| | |
| 06:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=01 |
| | hash predicates: store_sales.ss_store_sk = store.s_store_sk |
| | fk/pk conjuncts: store_sales.ss_store_sk = store.s_store_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,3,1,2 row-size=101B cardinality=31.53K |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--F09: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: store.s_store_sk |
| | | runtime filters: RF002[bloom] <- store.s_store_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 13:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=33B cardinality=12 |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=1 |
| | 02:SCAN HDFS [tpcds_parquet.store, RANDOM] |
| | HDFS partitions=1/1 files=1 size=9.93KB |
| | predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | stored statistics: |
| | table: rows=12 size=9.93KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=12 |
| | parquet statistics predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | parquet dictionary predicates: store.s_county IN ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') |
| | mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0 |
| | tuple-ids=2 row-size=33B cardinality=12 |
| | in pipelines: 02(GETNEXT) |
| | |
| 05:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=02 |
| | hash predicates: store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| | fk/pk conjuncts: store_sales.ss_sold_date_sk = date_dim.d_date_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,3,1 row-size=68B cardinality=31.53K |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--F10: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=01 |
| | | build expressions: date_dim.d_date_sk |
| | | runtime filters: RF004[bloom] <- date_dim.d_date_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 12:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=12B cardinality=354 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1 |
| | 01:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)), (date_dim.d_dom >= CAST(1 AS INT) AND date_dim.d_dom <= CAST(3 AS INT) OR date_dim.d_dom >= CAST(25 AS INT) AND date_dim.d_dom <= CAST(28 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: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)) |
| | parquet dictionary predicates: date_dim.d_year IN (CAST(1998 AS INT), CAST(1999 AS INT), CAST(2000 AS INT)), (date_dim.d_dom >= CAST(1 AS INT) AND date_dim.d_dom <= CAST(3 AS INT) OR date_dim.d_dom >= CAST(25 AS INT) AND date_dim.d_dom <= CAST(28 AS INT)) |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=1 row-size=12B cardinality=354 |
| | in pipelines: 01(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=03 |
| | hash predicates: store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| | fk/pk conjuncts: store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,3 row-size=56B cardinality=162.45K |
| | in pipelines: 00(GETNEXT), 03(OPEN) |
| | |
| |--F11:PLAN FRAGMENT [RANDOM] hosts=3 instances=3 |
| | | Per-Instance Resources: mem-estimate=4.90MB 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: household_demographics.hd_demo_sk |
| | | runtime filters: RF006[bloom] <- household_demographics.hd_demo_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 11:EXCHANGE [BROADCAST] |
| | | mem-estimate=27.22KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=32B cardinality=416 |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=64.00KB thread-reservation=1 |
| | 03:SCAN HDFS [tpcds_parquet.household_demographics, RANDOM] |
| | HDFS partitions=1/1 files=1 size=41.69KB |
| | predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown'), (CASE WHEN household_demographics.hd_vehicle_count > CAST(0 AS INT) THEN CAST(household_demographics.hd_dep_count AS DOUBLE) / CAST(household_demographics.hd_vehicle_count AS DOUBLE) ELSE NULL END) > CAST(1.2 AS DOUBLE) |
| | stored statistics: |
| | table: rows=7.20K size=41.69KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=7.20K |
| | parquet statistics predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown') |
| | parquet dictionary predicates: household_demographics.hd_vehicle_count > CAST(0 AS INT), household_demographics.hd_buy_potential IN ('>10000', 'unknown') |
| | mem-estimate=16.00MB mem-reservation=64.00KB thread-reservation=0 |
| | tuple-ids=3 row-size=32B cardinality=416 |
| | in pipelines: 03(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_parquet.store_sales, RANDOM] |
| HDFS partitions=1824/1824 files=1824 size=201.02MB |
| runtime filters: RF000[bloom] -> tpcds_parquet.store_sales.ss_customer_sk, RF002[bloom] -> store_sales.ss_store_sk, RF004[bloom] -> store_sales.ss_sold_date_sk, RF006[bloom] -> store_sales.ss_hdemo_sk |
| stored statistics: |
| table: rows=2.88M size=201.02MB |
| partitions: 1824/1824 rows=2.88M |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=130.09K |
| mem-estimate=16.00MB mem-reservation=2.00MB thread-reservation=0 |
| tuple-ids=0 row-size=24B cardinality=2.88M |
| in pipelines: 00(GETNEXT) |
| ==== |