blob: d7c846e500fea87fa59e7d0ae0acb8f74f708d23 [file] [log] [blame]
# TPCDS-Q01
WITH customer_total_return AS
(SELECT sr_customer_sk AS ctr_customer_sk,
sr_store_sk AS ctr_store_sk,
sum(sr_return_amt) AS ctr_total_return
FROM store_returns,
date_dim
WHERE sr_returned_date_sk = d_date_sk
AND d_year = 2000
GROUP BY sr_customer_sk,
sr_store_sk)
SELECT c_customer_id
FROM customer_total_return ctr1,
store,
customer
WHERE ctr1.ctr_total_return >
(SELECT avg(ctr_total_return)*1.2
FROM customer_total_return ctr2
WHERE ctr1.ctr_store_sk = ctr2.ctr_store_sk)
AND s_store_sk = ctr1.ctr_store_sk
AND s_state = 'TN'
AND ctr1.ctr_customer_sk = c_customer_sk
ORDER BY c_customer_id
LIMIT 100
---- PLAN
Max Per-Host Resource Reservation: Memory=26.58MB Threads=7
Per-Host Resource Estimates: Memory=331MB
F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=330.81MB mem-reservation=26.58MB thread-reservation=7 runtime-filters-memory=5.00MB
PLAN-ROOT SINK
| output exprs: c_customer_id
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
14:TOP-N [LIMIT=100]
| order by: c_customer_id ASC
| mem-estimate=2.73KB mem-reservation=0B thread-reservation=0
| tuple-ids=13 row-size=28B cardinality=100
| in pipelines: 14(GETNEXT), 05(OPEN)
|
13:HASH JOIN [LEFT SEMI JOIN]
| hash predicates: sr_store_sk = ctr2.ctr_store_sk
| other join predicates: sum(sr_return_amt) > avg(ctr_total_return) * CAST(1.2 AS DECIMAL(2,1))
| runtime filters: RF000[bloom] <- ctr2.ctr_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=5,2,4 row-size=74B cardinality=53.81K
| in pipelines: 05(GETNEXT), 10(OPEN)
|
|--10:AGGREGATE [FINALIZE]
| | output: avg(sum(sr_return_amt))
| | group by: sr_store_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=11 row-size=20B cardinality=6
| | in pipelines: 10(GETNEXT), 09(OPEN)
| |
| 09:AGGREGATE [FINALIZE]
| | output: sum(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 09(GETNEXT), 06(OPEN)
| |
| 08:HASH JOIN [INNER JOIN]
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_date_sk = d_date_sk
| | runtime filters: RF008[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=6,7 row-size=24B cardinality=53.81K
| | in pipelines: 06(GETNEXT), 07(OPEN)
| |
| |--07:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: 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: d_year = CAST(2000 AS INT)
| | parquet dictionary predicates: 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: 07(GETNEXT)
| |
| 06:SCAN HDFS [tpcds_parquet.store_returns]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF008[bloom] -> sr_returned_date_sk
| stored statistics:
| table: rows=287.51K size=15.43MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=287.51K
| mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=6 row-size=16B cardinality=287.51K
| in pipelines: 06(GETNEXT)
|
12:HASH JOIN [INNER JOIN]
| hash predicates: sr_store_sk = s_store_sk
| fk/pk conjuncts: sr_store_sk = s_store_sk
| runtime filters: RF002[bloom] <- s_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=5,2,4 row-size=74B cardinality=53.81K
| in pipelines: 05(GETNEXT), 04(OPEN)
|
|--04:SCAN HDFS [tpcds_parquet.store]
| HDFS partitions=1/1 files=1 size=9.93KB
| predicates: s_state = 'TN'
| runtime filters: RF000[bloom] -> tpcds_parquet.store.s_store_sk
| stored statistics:
| table: rows=12 size=9.93KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=12
| parquet statistics predicates: s_state = 'TN'
| parquet dictionary predicates: s_state = 'TN'
| mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=4 row-size=18B cardinality=12
| in pipelines: 04(GETNEXT)
|
11:HASH JOIN [INNER JOIN]
| hash predicates: c_customer_sk = sr_customer_sk
| fk/pk conjuncts: none
| runtime filters: RF004[bloom] <- sr_customer_sk
| mem-estimate=2.88MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| tuple-ids=5,2 row-size=56B cardinality=53.81K
| in pipelines: 05(GETNEXT), 03(OPEN)
|
|--03:AGGREGATE [FINALIZE]
| | output: sum(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 03(GETNEXT), 00(OPEN)
| |
| 02:HASH JOIN [INNER JOIN]
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_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=0,1 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT), 01(OPEN)
| |
| |--01:SCAN HDFS [tpcds_parquet.date_dim]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: 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: d_year = CAST(2000 AS INT)
| | parquet dictionary predicates: d_year = CAST(2000 AS INT)
| | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=1 row-size=8B cardinality=373
| | in pipelines: 01(GETNEXT)
| |
| 00:SCAN HDFS [tpcds_parquet.store_returns]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF000[bloom] -> tpcds_parquet.store_returns.sr_store_sk, RF002[bloom] -> tpcds_parquet.store_returns.sr_store_sk, RF006[bloom] -> sr_returned_date_sk
| stored statistics:
| table: rows=287.51K size=15.43MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=287.51K
| mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=0 row-size=16B cardinality=287.51K
| in pipelines: 00(GETNEXT)
|
05:SCAN HDFS [tpcds_parquet.customer]
HDFS partitions=1/1 files=1 size=5.49MB
runtime filters: RF004[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=32.00MB mem-reservation=2.00MB thread-reservation=1
tuple-ids=5 row-size=32B cardinality=100.00K
in pipelines: 05(GETNEXT)
---- DISTRIBUTEDPLAN
Max Per-Host Resource Reservation: Memory=45.33MB Threads=16
Per-Host Resource Estimates: Memory=402MB
F09: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: c_customer_id
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
26:MERGING-EXCHANGE [UNPARTITIONED]
| order by: c_customer_id ASC
| limit: 100
| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=13 row-size=28B cardinality=100
| in pipelines: 14(GETNEXT)
|
F00:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
Per-Host Resources: mem-estimate=43.04MB mem-reservation=11.75MB thread-reservation=2 runtime-filters-memory=3.00MB
14:TOP-N [LIMIT=100]
| order by: c_customer_id ASC
| mem-estimate=2.73KB mem-reservation=0B thread-reservation=0
| tuple-ids=13 row-size=28B cardinality=100
| in pipelines: 14(GETNEXT), 05(OPEN)
|
13:HASH JOIN [LEFT SEMI JOIN, BROADCAST]
| hash predicates: sr_store_sk = ctr2.ctr_store_sk
| other join predicates: sum(sr_return_amt) > avg(ctr_total_return) * CAST(1.2 AS DECIMAL(2,1))
| runtime filters: RF000[bloom] <- ctr2.ctr_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=5,2,4 row-size=74B cardinality=53.81K
| in pipelines: 05(GETNEXT), 24(OPEN)
|
|--25:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=11 row-size=20B cardinality=6
| | in pipelines: 24(GETNEXT)
| |
| F08:PLAN FRAGMENT [HASH(ctr2.ctr_store_sk)] hosts=1 instances=1
| Per-Host Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1
| 24:AGGREGATE [FINALIZE]
| | output: avg:merge(ctr_total_return)
| | group by: ctr2.ctr_store_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=11 row-size=20B cardinality=6
| | in pipelines: 24(GETNEXT), 22(OPEN)
| |
| 23:EXCHANGE [HASH(ctr2.ctr_store_sk)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=10 row-size=20B cardinality=6
| | in pipelines: 22(GETNEXT)
| |
| F07:PLAN FRAGMENT [HASH(sr_customer_sk,sr_store_sk)] hosts=1 instances=1
| Per-Host Resources: mem-estimate=21.26MB mem-reservation=4.88MB thread-reservation=1
| 10:AGGREGATE [STREAMING]
| | output: avg(sum(sr_return_amt))
| | group by: sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=10 row-size=20B cardinality=6
| | in pipelines: 22(GETNEXT)
| |
| 22:AGGREGATE [FINALIZE]
| | output: sum:merge(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 22(GETNEXT), 06(OPEN)
| |
| 21:EXCHANGE [HASH(sr_customer_sk,sr_store_sk)]
| | mem-estimate=1.26MB mem-reservation=0B thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 06(GETNEXT)
| |
| F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=108.95MB mem-reservation=9.94MB thread-reservation=2 runtime-filters-memory=1.00MB
| 09:AGGREGATE [STREAMING]
| | output: sum(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=3.00MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 06(GETNEXT)
| |
| 08:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_date_sk = d_date_sk
| | runtime filters: RF008[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=6,7 row-size=24B cardinality=53.81K
| | in pipelines: 06(GETNEXT), 07(OPEN)
| |
| |--20:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=7 row-size=8B cardinality=373
| | | in pipelines: 07(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=2
| | 07:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: 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: d_year = CAST(2000 AS INT)
| | parquet dictionary predicates: 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: 07(GETNEXT)
| |
| 06:SCAN HDFS [tpcds_parquet.store_returns, RANDOM]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF008[bloom] -> sr_returned_date_sk
| stored statistics:
| table: rows=287.51K size=15.43MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=287.51K
| mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=6 row-size=16B cardinality=287.51K
| in pipelines: 06(GETNEXT)
|
12:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: sr_store_sk = s_store_sk
| fk/pk conjuncts: sr_store_sk = s_store_sk
| runtime filters: RF002[bloom] <- s_store_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=5,2,4 row-size=74B cardinality=53.81K
| in pipelines: 05(GETNEXT), 04(OPEN)
|
|--19:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=4 row-size=18B cardinality=12
| | in pipelines: 04(GETNEXT)
| |
| F04:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=33.00MB mem-reservation=1.02MB thread-reservation=2 runtime-filters-memory=1.00MB
| 04:SCAN HDFS [tpcds_parquet.store, RANDOM]
| HDFS partitions=1/1 files=1 size=9.93KB
| predicates: s_state = 'TN'
| runtime filters: RF000[bloom] -> tpcds_parquet.store.s_store_sk
| stored statistics:
| table: rows=12 size=9.93KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=12
| parquet statistics predicates: s_state = 'TN'
| parquet dictionary predicates: s_state = 'TN'
| mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1
| tuple-ids=4 row-size=18B cardinality=12
| in pipelines: 04(GETNEXT)
|
11:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: c_customer_sk = sr_customer_sk
| fk/pk conjuncts: none
| runtime filters: RF004[bloom] <- sr_customer_sk
| mem-estimate=2.88MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| tuple-ids=5,2 row-size=56B cardinality=53.81K
| in pipelines: 05(GETNEXT), 17(OPEN)
|
|--18:EXCHANGE [BROADCAST]
| | mem-estimate=1.26MB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 17(GETNEXT)
| |
| F03:PLAN FRAGMENT [HASH(sr_customer_sk,sr_store_sk)] hosts=1 instances=1
| Per-Host Resources: mem-estimate=11.26MB mem-reservation=2.88MB thread-reservation=1
| 17:AGGREGATE [FINALIZE]
| | output: sum:merge(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 17(GETNEXT), 00(OPEN)
| |
| 16:EXCHANGE [HASH(sr_customer_sk,sr_store_sk)]
| | mem-estimate=1.26MB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=110.95MB mem-reservation=11.94MB thread-reservation=2 runtime-filters-memory=3.00MB
| 03:AGGREGATE [STREAMING]
| | output: sum(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=3.00MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT)
| |
| 02:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_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=0,1 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT), 01(OPEN)
| |
| |--15:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=1 row-size=8B cardinality=373
| | | in pipelines: 01(GETNEXT)
| | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.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: 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: d_year = CAST(2000 AS INT)
| | parquet dictionary predicates: d_year = CAST(2000 AS INT)
| | mem-estimate=32.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=1 row-size=8B cardinality=373
| | in pipelines: 01(GETNEXT)
| |
| 00:SCAN HDFS [tpcds_parquet.store_returns, RANDOM]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF000[bloom] -> tpcds_parquet.store_returns.sr_store_sk, RF002[bloom] -> tpcds_parquet.store_returns.sr_store_sk, RF006[bloom] -> sr_returned_date_sk
| stored statistics:
| table: rows=287.51K size=15.43MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=287.51K
| mem-estimate=96.00MB mem-reservation=4.00MB thread-reservation=1
| tuple-ids=0 row-size=16B cardinality=287.51K
| in pipelines: 00(GETNEXT)
|
05:SCAN HDFS [tpcds_parquet.customer, RANDOM]
HDFS partitions=1/1 files=1 size=5.49MB
runtime filters: RF004[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=32.00MB mem-reservation=2.00MB thread-reservation=1
tuple-ids=5 row-size=32B cardinality=100.00K
in pipelines: 05(GETNEXT)
---- PARALLELPLANS
Max Per-Host Resource Reservation: Memory=58.95MB Threads=15
Per-Host Resource Estimates: Memory=208MB
F09: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: c_customer_id
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
26:MERGING-EXCHANGE [UNPARTITIONED]
| order by: c_customer_id ASC
| limit: 100
| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=13 row-size=28B cardinality=100
| in pipelines: 14(GETNEXT)
|
F00: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=2.00MB thread-reservation=1
14:TOP-N [LIMIT=100]
| order by: c_customer_id ASC
| mem-estimate=2.73KB mem-reservation=0B thread-reservation=0
| tuple-ids=13 row-size=28B cardinality=100
| in pipelines: 14(GETNEXT), 05(OPEN)
|
13:HASH JOIN [LEFT SEMI JOIN, BROADCAST]
| hash-table-id=00
| hash predicates: sr_store_sk = ctr2.ctr_store_sk
| other join predicates: sum(sr_return_amt) > avg(ctr_total_return) * CAST(1.2 AS DECIMAL(2,1))
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=5,2,4 row-size=74B cardinality=53.81K
| in pipelines: 05(GETNEXT), 24(OPEN)
|
|--F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | 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: ctr2.ctr_store_sk
| | runtime filters: RF000[bloom] <- ctr2.ctr_store_sk
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 25:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=11 row-size=20B cardinality=6
| | in pipelines: 24(GETNEXT)
| |
| F08:PLAN FRAGMENT [HASH(ctr2.ctr_store_sk)] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=10.02MB mem-reservation=1.94MB thread-reservation=1
| 24:AGGREGATE [FINALIZE]
| | output: avg:merge(ctr_total_return)
| | group by: ctr2.ctr_store_sk
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=11 row-size=20B cardinality=6
| | in pipelines: 24(GETNEXT), 22(OPEN)
| |
| 23:EXCHANGE [HASH(ctr2.ctr_store_sk)]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=10 row-size=20B cardinality=6
| | in pipelines: 22(GETNEXT)
| |
| F07:PLAN FRAGMENT [HASH(sr_customer_sk,sr_store_sk)] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=21.26MB mem-reservation=4.88MB thread-reservation=1
| 10:AGGREGATE [STREAMING]
| | output: avg(sum(sr_return_amt))
| | group by: sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=10 row-size=20B cardinality=6
| | in pipelines: 22(GETNEXT)
| |
| 22:AGGREGATE [FINALIZE]
| | output: sum:merge(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 22(GETNEXT), 06(OPEN)
| |
| 21:EXCHANGE [HASH(sr_customer_sk,sr_store_sk)]
| | mem-estimate=1.26MB mem-reservation=0B thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 06(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=34.00MB mem-reservation=7.00MB thread-reservation=1
| 09:AGGREGATE [STREAMING]
| | output: sum(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=3.00MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=8 row-size=24B cardinality=53.81K
| | in pipelines: 06(GETNEXT)
| |
| 08:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=01
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_date_sk = d_date_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=6,7 row-size=24B cardinality=53.81K
| | in pipelines: 06(GETNEXT), 07(OPEN)
| |
| |--F11:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | | 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=02
| | | build expressions: d_date_sk
| | | runtime filters: RF008[bloom] <- d_date_sk
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| | |
| | 20:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=7 row-size=8B cardinality=373
| | | in pipelines: 07(GETNEXT)
| | |
| | F06:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1
| | 07:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: 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: d_year = CAST(2000 AS INT)
| | parquet dictionary predicates: 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: 07(GETNEXT)
| |
| 06:SCAN HDFS [tpcds_parquet.store_returns, RANDOM]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF008[bloom] -> sr_returned_date_sk
| 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=6 row-size=16B cardinality=287.51K
| in pipelines: 06(GETNEXT)
|
12:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=02
| hash predicates: sr_store_sk = s_store_sk
| fk/pk conjuncts: sr_store_sk = s_store_sk
| mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| tuple-ids=5,2,4 row-size=74B cardinality=53.81K
| in pipelines: 05(GETNEXT), 04(OPEN)
|
|--F12:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | 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: s_store_sk
| | runtime filters: RF002[bloom] <- s_store_sk
| | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0
| |
| 19:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=4 row-size=18B cardinality=12
| | 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=16.00KB thread-reservation=1
| 04:SCAN HDFS [tpcds_parquet.store, RANDOM]
| HDFS partitions=1/1 files=1 size=9.93KB
| predicates: s_state = 'TN'
| runtime filters: RF000[bloom] -> tpcds_parquet.store.s_store_sk
| stored statistics:
| table: rows=12 size=9.93KB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=12
| parquet statistics predicates: s_state = 'TN'
| parquet dictionary predicates: s_state = 'TN'
| mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0
| tuple-ids=4 row-size=18B cardinality=12
| in pipelines: 04(GETNEXT)
|
11:HASH JOIN [INNER JOIN, BROADCAST]
| hash-table-id=03
| hash predicates: c_customer_sk = sr_customer_sk
| fk/pk conjuncts: none
| mem-estimate=0B mem-reservation=0B spill-buffer=128.00KB thread-reservation=0
| tuple-ids=5,2 row-size=56B cardinality=53.81K
| in pipelines: 05(GETNEXT), 17(OPEN)
|
|--F13:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Instance Resources: mem-estimate=8.01MB mem-reservation=6.75MB thread-reservation=1 runtime-filters-memory=1.00MB
| JOIN BUILD
| | join-table-id=03 plan-id=04 cohort-id=01
| | build expressions: sr_customer_sk
| | runtime filters: RF004[bloom] <- sr_customer_sk
| | mem-estimate=5.75MB mem-reservation=5.75MB spill-buffer=128.00KB thread-reservation=0
| |
| 18:EXCHANGE [BROADCAST]
| | mem-estimate=1.26MB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 17(GETNEXT)
| |
| F03:PLAN FRAGMENT [HASH(sr_customer_sk,sr_store_sk)] hosts=1 instances=1
| Per-Instance Resources: mem-estimate=11.26MB mem-reservation=2.88MB thread-reservation=1
| 17:AGGREGATE [FINALIZE]
| | output: sum:merge(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=2.88MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 17(GETNEXT), 00(OPEN)
| |
| 16:EXCHANGE [HASH(sr_customer_sk,sr_store_sk)]
| | mem-estimate=1.26MB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| 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=34.00MB mem-reservation=7.00MB thread-reservation=1
| 03:AGGREGATE [STREAMING]
| | output: sum(sr_return_amt)
| | group by: sr_customer_sk, sr_store_sk
| | mem-estimate=10.00MB mem-reservation=3.00MB spill-buffer=128.00KB thread-reservation=0
| | tuple-ids=2 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT)
| |
| 02:HASH JOIN [INNER JOIN, BROADCAST]
| | hash-table-id=04
| | hash predicates: sr_returned_date_sk = d_date_sk
| | fk/pk conjuncts: sr_returned_date_sk = d_date_sk
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=0,1 row-size=24B cardinality=53.81K
| | in pipelines: 00(GETNEXT), 01(OPEN)
| |
| |--F14:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | | 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=03
| | | 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
| | |
| | 15:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=1 row-size=8B cardinality=373
| | | 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: 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: d_year = CAST(2000 AS INT)
| | parquet dictionary predicates: d_year = CAST(2000 AS INT)
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0
| | tuple-ids=1 row-size=8B cardinality=373
| | in pipelines: 01(GETNEXT)
| |
| 00:SCAN HDFS [tpcds_parquet.store_returns, RANDOM]
| HDFS partitions=1/1 files=1 size=15.43MB
| runtime filters: RF000[bloom] -> tpcds_parquet.store_returns.sr_store_sk, RF002[bloom] -> tpcds_parquet.store_returns.sr_store_sk, RF006[bloom] -> sr_returned_date_sk
| 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=0 row-size=16B cardinality=287.51K
| in pipelines: 00(GETNEXT)
|
05:SCAN HDFS [tpcds_parquet.customer, RANDOM]
HDFS partitions=1/1 files=1 size=5.49MB
runtime filters: RF004[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=16.00MB mem-reservation=2.00MB thread-reservation=0
tuple-ids=5 row-size=32B cardinality=100.00K
in pipelines: 05(GETNEXT)
====