blob: e41cd257ebbfa05a6920d8c876eee103d5ed4c42 [file] [log] [blame]
# TPCDS-Q60
with ss as (
select
i_item_id,sum(ss_ext_sales_price) total_sales
from
store_sales,
date_dim,
customer_address,
item
where
i_item_id in (select
i_item_id
from
item
where i_category in ('Music'))
and ss_item_sk = i_item_sk
and ss_sold_date_sk = d_date_sk
and d_year = 1998
and d_moy = 9
and ss_addr_sk = ca_address_sk
and ca_gmt_offset = -5
group by i_item_id),
cs as (
select
i_item_id,sum(cs_ext_sales_price) total_sales
from
catalog_sales,
date_dim,
customer_address,
item
where
i_item_id in (select
i_item_id
from
item
where i_category in ('Music'))
and cs_item_sk = i_item_sk
and cs_sold_date_sk = d_date_sk
and d_year = 1998
and d_moy = 9
and cs_bill_addr_sk = ca_address_sk
and ca_gmt_offset = -5
group by i_item_id),
ws as (
select
i_item_id,sum(ws_ext_sales_price) total_sales
from
web_sales,
date_dim,
customer_address,
item
where
i_item_id in (select
i_item_id
from
item
where i_category in ('Music'))
and ws_item_sk = i_item_sk
and ws_sold_date_sk = d_date_sk
and d_year = 1998
and d_moy = 9
and ws_bill_addr_sk = ca_address_sk
and ca_gmt_offset = -5
group by i_item_id)
select
i_item_id
,sum(total_sales) total_sales
from (select * from ss
union all
select * from cs
union all
select * from ws) tmp1
group by i_item_id
order by i_item_id
,total_sales
limit 100;
---- PLAN
Max Per-Host Resource Reservation: Memory=28.44MB Threads=6
Per-Host Resource Estimates: Memory=362MB
F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1
| Per-Host Resources: mem-estimate=361.81MB mem-reservation=28.44MB thread-reservation=6 runtime-filters-memory=10.00MB
PLAN-ROOT SINK
| output exprs: i_item_id, sum(total_sales)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
32:TOP-N [LIMIT=100]
| order by: i_item_id ASC, sum(total_sales) ASC
| mem-estimate=4.30KB mem-reservation=0B thread-reservation=0
| tuple-ids=27 row-size=44B cardinality=100
| in pipelines: 32(GETNEXT), 31(OPEN)
|
31:AGGREGATE [FINALIZE]
| output: sum(total_sales)
| group by: i_item_id
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=26 row-size=44B cardinality=10.80K
| in pipelines: 31(GETNEXT), 10(OPEN), 20(OPEN), 30(OPEN)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=24 row-size=44B cardinality=10.80K
| in pipelines: 10(GETNEXT), 20(GETNEXT), 30(GETNEXT)
|
|--30:AGGREGATE [FINALIZE]
| | output: sum(ws_ext_sales_price)
| | group by: i_item_id
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=22 row-size=44B cardinality=2.00K
| | in pipelines: 30(GETNEXT), 24(OPEN)
| |
| 29:HASH JOIN [LEFT SEMI JOIN]
| | hash predicates: i_item_id = i_item_id
| | runtime filters: RF016[bloom] <- i_item_id
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=19,16,17,18 row-size=76B cardinality=2.00K
| | in pipelines: 24(GETNEXT), 25(OPEN)
| |
| |--25:SCAN HDFS [tpcds_parquet.item]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category IN ('Music')
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category IN ('Music')
| | parquet dictionary predicates: i_category IN ('Music')
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=20 row-size=46B cardinality=1.80K
| | in pipelines: 25(GETNEXT)
| |
| 28:HASH JOIN [INNER JOIN]
| | hash predicates: i_item_sk = ws_item_sk
| | fk/pk conjuncts: i_item_sk = ws_item_sk
| | runtime filters: RF018[bloom] <- ws_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=19,16,17,18 row-size=76B cardinality=9.81K
| | in pipelines: 24(GETNEXT), 21(OPEN)
| |
| |--27:HASH JOIN [INNER JOIN]
| | | hash predicates: ws_bill_addr_sk = ca_address_sk
| | | fk/pk conjuncts: ws_bill_addr_sk = ca_address_sk
| | | runtime filters: RF020[bloom] <- ca_address_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=16,17,18 row-size=40B cardinality=9.81K
| | | in pipelines: 21(GETNEXT), 23(OPEN)
| | |
| | |--23:SCAN HDFS [tpcds_parquet.customer_address]
| | | HDFS partitions=1/1 files=1 size=1.16MB
| | | predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | | stored statistics:
| | | table: rows=50.00K size=1.16MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=50.00K
| | | parquet statistics predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | | parquet dictionary predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | | tuple-ids=18 row-size=8B cardinality=8.33K
| | | in pipelines: 23(GETNEXT)
| | |
| | 26:HASH JOIN [INNER JOIN]
| | | hash predicates: ws_sold_date_sk = d_date_sk
| | | fk/pk conjuncts: ws_sold_date_sk = d_date_sk
| | | runtime filters: RF022[bloom] <- d_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=16,17 row-size=32B cardinality=42.85K
| | | in pipelines: 21(GETNEXT), 22(OPEN)
| | |
| | |--22:SCAN HDFS [tpcds_parquet.date_dim]
| | | HDFS partitions=1/1 files=1 size=2.15MB
| | | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 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(1998 AS INT), d_moy = CAST(9 AS INT)
| | | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 AS INT)
| | | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | | tuple-ids=17 row-size=12B cardinality=108
| | | in pipelines: 22(GETNEXT)
| | |
| | 21:SCAN HDFS [tpcds_parquet.web_sales]
| | HDFS partitions=1/1 files=2 size=45.09MB
| | runtime filters: RF022[bloom] -> ws_sold_date_sk, RF020[bloom] -> ws_bill_addr_sk
| | stored statistics:
| | table: rows=719.38K size=45.09MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=644.77K
| | mem-estimate=128.00MB mem-reservation=8.00MB thread-reservation=1
| | tuple-ids=16 row-size=20B cardinality=719.38K
| | in pipelines: 21(GETNEXT)
| |
| 24:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF016[bloom] -> i_item_id, RF018[bloom] -> i_item_sk
| 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=512.00KB thread-reservation=1
| tuple-ids=19 row-size=36B cardinality=18.00K
| in pipelines: 24(GETNEXT)
|
|--20:AGGREGATE [FINALIZE]
| | output: sum(cs_ext_sales_price)
| | group by: i_item_id
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=44B cardinality=3.01K
| | in pipelines: 20(GETNEXT), 14(OPEN)
| |
| 19:HASH JOIN [LEFT SEMI JOIN]
| | hash predicates: i_item_id = i_item_id
| | runtime filters: RF008[bloom] <- i_item_id
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=11,8,9,10 row-size=76B cardinality=3.01K
| | in pipelines: 14(GETNEXT), 15(OPEN)
| |
| |--15:SCAN HDFS [tpcds_parquet.item]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category IN ('Music')
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category IN ('Music')
| | parquet dictionary predicates: i_category IN ('Music')
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=12 row-size=46B cardinality=1.80K
| | in pipelines: 15(GETNEXT)
| |
| 18:HASH JOIN [INNER JOIN]
| | hash predicates: i_item_sk = cs_item_sk
| | fk/pk conjuncts: i_item_sk = cs_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=11,8,9,10 row-size=76B cardinality=14.81K
| | in pipelines: 14(GETNEXT), 11(OPEN)
| |
| |--17:HASH JOIN [INNER JOIN]
| | | hash predicates: cs_bill_addr_sk = ca_address_sk
| | | fk/pk conjuncts: cs_bill_addr_sk = ca_address_sk
| | | runtime filters: RF012[bloom] <- ca_address_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=8,9,10 row-size=40B cardinality=14.81K
| | | in pipelines: 11(GETNEXT), 13(OPEN)
| | |
| | |--13:SCAN HDFS [tpcds_parquet.customer_address]
| | | HDFS partitions=1/1 files=1 size=1.16MB
| | | predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | | stored statistics:
| | | table: rows=50.00K size=1.16MB
| | | columns: all
| | | extrapolated-rows=disabled max-scan-range-rows=50.00K
| | | parquet statistics predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | | parquet dictionary predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | | tuple-ids=10 row-size=8B cardinality=8.33K
| | | in pipelines: 13(GETNEXT)
| | |
| | 16:HASH JOIN [INNER JOIN]
| | | hash predicates: cs_sold_date_sk = d_date_sk
| | | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | | runtime filters: RF014[bloom] <- d_date_sk
| | | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | | tuple-ids=8,9 row-size=32B cardinality=85.31K
| | | in pipelines: 11(GETNEXT), 12(OPEN)
| | |
| | |--12:SCAN HDFS [tpcds_parquet.date_dim]
| | | HDFS partitions=1/1 files=1 size=2.15MB
| | | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 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(1998 AS INT), d_moy = CAST(9 AS INT)
| | | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 AS INT)
| | | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | | tuple-ids=9 row-size=12B cardinality=108
| | | in pipelines: 12(GETNEXT)
| | |
| | 11:SCAN HDFS [tpcds_parquet.catalog_sales]
| | HDFS partitions=1/1 files=3 size=96.62MB
| | runtime filters: RF014[bloom] -> cs_sold_date_sk, RF012[bloom] -> cs_bill_addr_sk
| | stored statistics:
| | table: rows=1.44M size=96.62MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=650.14K
| | mem-estimate=192.00MB mem-reservation=8.00MB thread-reservation=1
| | tuple-ids=8 row-size=20B cardinality=1.44M
| | in pipelines: 11(GETNEXT)
| |
| 14:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF008[bloom] -> i_item_id
| 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=512.00KB thread-reservation=1
| tuple-ids=11 row-size=36B cardinality=18.00K
| in pipelines: 14(GETNEXT)
|
10:AGGREGATE [FINALIZE]
| output: sum(ss_ext_sales_price)
| group by: i_item_id
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=6 row-size=44B cardinality=5.79K
| in pipelines: 10(GETNEXT), 01(OPEN)
|
09:HASH JOIN [LEFT SEMI JOIN]
| hash predicates: i_item_id = i_item_id
| runtime filters: RF000[bloom] <- i_item_id
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2,3 row-size=76B cardinality=5.79K
| in pipelines: 01(GETNEXT), 05(OPEN)
|
|--05:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| predicates: i_category IN ('Music')
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| parquet statistics predicates: i_category IN ('Music')
| parquet dictionary predicates: i_category IN ('Music')
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=4 row-size=46B cardinality=1.80K
| in pipelines: 05(GETNEXT)
|
08:HASH JOIN [INNER JOIN]
| hash predicates: ss_item_sk = i_item_sk
| fk/pk conjuncts: ss_item_sk = i_item_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2,3 row-size=76B cardinality=28.50K
| in pipelines: 01(GETNEXT), 04(OPEN)
|
|--04:SCAN HDFS [tpcds_parquet.item]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF000[bloom] -> i_item_id
| 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=512.00KB thread-reservation=1
| tuple-ids=3 row-size=36B cardinality=18.00K
| in pipelines: 04(GETNEXT)
|
07:HASH JOIN [INNER JOIN]
| hash predicates: ss_addr_sk = ca_address_sk
| fk/pk conjuncts: ss_addr_sk = ca_address_sk
| runtime filters: RF004[bloom] <- ca_address_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2 row-size=40B cardinality=28.50K
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--03:SCAN HDFS [tpcds_parquet.customer_address]
| HDFS partitions=1/1 files=1 size=1.16MB
| predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| stored statistics:
| table: rows=50.00K size=1.16MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=50.00K
| parquet statistics predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| parquet dictionary predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=2 row-size=8B cardinality=8.33K
| in pipelines: 03(GETNEXT)
|
06:HASH JOIN [INNER JOIN]
| hash predicates: ss_sold_date_sk = d_date_sk
| fk/pk conjuncts: ss_sold_date_sk = d_date_sk
| runtime filters: 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=32B cardinality=170.55K
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--02:SCAN HDFS [tpcds_parquet.date_dim]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 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(1998 AS INT), d_moy = CAST(9 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 AS INT)
| mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=1 row-size=12B cardinality=108
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales]
HDFS partitions=1824/1824 files=1824 size=200.95MB
runtime filters: RF006[bloom] -> ss_sold_date_sk, RF004[bloom] -> ss_addr_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=48.00MB mem-reservation=2.00MB thread-reservation=1
tuple-ids=0 row-size=20B cardinality=2.88M
in pipelines: 01(GETNEXT)
---- DISTRIBUTEDPLAN
Max Per-Host Resource Reservation: Memory=71.62MB Threads=36
Per-Host Resource Estimates: Memory=902MB
F23: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: i_item_id, sum(total_sales)
| mem-estimate=0B mem-reservation=0B thread-reservation=0
|
56:MERGING-EXCHANGE [UNPARTITIONED]
| order by: i_item_id ASC, sum(total_sales) ASC
| limit: 100
| mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=27 row-size=44B cardinality=100
| in pipelines: 32(GETNEXT)
|
F22:PLAN FRAGMENT [HASH(i_item_id)] hosts=3 instances=3
Per-Host Resources: mem-estimate=10.29MB mem-reservation=1.94MB thread-reservation=1
32:TOP-N [LIMIT=100]
| order by: i_item_id ASC, sum(total_sales) ASC
| mem-estimate=4.30KB mem-reservation=0B thread-reservation=0
| tuple-ids=27 row-size=44B cardinality=100
| in pipelines: 32(GETNEXT), 55(OPEN)
|
55:AGGREGATE [FINALIZE]
| output: sum:merge(total_sales)
| group by: i_item_id
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=26 row-size=44B cardinality=10.80K
| in pipelines: 55(GETNEXT), 39(OPEN), 46(OPEN), 53(OPEN)
|
54:EXCHANGE [HASH(i_item_id)]
| mem-estimate=298.70KB mem-reservation=0B thread-reservation=0
| tuple-ids=26 row-size=44B cardinality=10.80K
| in pipelines: 39(GETNEXT), 46(GETNEXT), 53(GETNEXT)
|
F21:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=20.22MB mem-reservation=3.94MB thread-reservation=1
31:AGGREGATE [STREAMING]
| output: sum(total_sales)
| group by: i_item_id
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=26 row-size=44B cardinality=10.80K
| in pipelines: 39(GETNEXT), 46(GETNEXT), 53(GETNEXT)
|
00:UNION
| mem-estimate=0B mem-reservation=0B thread-reservation=0
| tuple-ids=24 row-size=44B cardinality=10.80K
| in pipelines: 39(GETNEXT), 46(GETNEXT), 53(GETNEXT)
|
|--53:AGGREGATE [FINALIZE]
| | output: sum:merge(ws_ext_sales_price)
| | group by: i_item_id
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=22 row-size=44B cardinality=2.00K
| | in pipelines: 53(GETNEXT), 21(OPEN)
| |
| 52:EXCHANGE [HASH(i_item_id)]
| | mem-estimate=138.86KB mem-reservation=0B thread-reservation=0
| | tuple-ids=22 row-size=44B cardinality=2.00K
| | in pipelines: 21(GETNEXT)
| |
| F18:PLAN FRAGMENT [HASH(ws_item_sk)] hosts=2 instances=2
| Per-Host Resources: mem-estimate=15.95MB mem-reservation=6.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| 30:AGGREGATE [STREAMING]
| | output: sum(ws_ext_sales_price)
| | group by: i_item_id
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=22 row-size=44B cardinality=2.00K
| | in pipelines: 21(GETNEXT)
| |
| 29:HASH JOIN [LEFT SEMI JOIN, BROADCAST]
| | hash predicates: i_item_id = i_item_id
| | runtime filters: RF016[bloom] <- i_item_id
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=16,17,18,19 row-size=76B cardinality=2.00K
| | in pipelines: 21(GETNEXT), 25(OPEN)
| |
| |--51:EXCHANGE [BROADCAST]
| | | mem-estimate=130.57KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=20 row-size=46B cardinality=1.80K
| | | in pipelines: 25(GETNEXT)
| | |
| | F19:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| | 25:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category IN ('Music')
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category IN ('Music')
| | parquet dictionary predicates: i_category IN ('Music')
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=20 row-size=46B cardinality=1.80K
| | in pipelines: 25(GETNEXT)
| |
| 28:HASH JOIN [INNER JOIN, PARTITIONED]
| | hash predicates: ws_item_sk = i_item_sk
| | fk/pk conjuncts: ws_item_sk = i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=16,17,18,19 row-size=76B cardinality=9.81K
| | in pipelines: 21(GETNEXT), 24(OPEN)
| |
| |--50:EXCHANGE [HASH(i_item_sk)]
| | | mem-estimate=672.81KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=19 row-size=36B cardinality=18.00K
| | | in pipelines: 24(GETNEXT)
| | |
| | F17: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
| | 24:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | runtime filters: RF016[bloom] -> i_item_id
| | 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=512.00KB thread-reservation=1
| | tuple-ids=19 row-size=36B cardinality=18.00K
| | in pipelines: 24(GETNEXT)
| |
| 49:EXCHANGE [HASH(ws_item_sk)]
| | mem-estimate=295.62KB mem-reservation=0B thread-reservation=0
| | tuple-ids=16,17,18 row-size=40B cardinality=9.81K
| | in pipelines: 21(GETNEXT)
| |
| F14:PLAN FRAGMENT [RANDOM] hosts=2 instances=2
| Per-Host Resources: mem-estimate=133.97MB mem-reservation=13.88MB thread-reservation=2 runtime-filters-memory=2.00MB
| 27:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: ws_bill_addr_sk = ca_address_sk
| | fk/pk conjuncts: ws_bill_addr_sk = ca_address_sk
| | runtime filters: RF020[bloom] <- ca_address_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=16,17,18 row-size=40B cardinality=9.81K
| | in pipelines: 21(GETNEXT), 23(OPEN)
| |
| |--48:EXCHANGE [BROADCAST]
| | | mem-estimate=77.10KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=18 row-size=8B cardinality=8.33K
| | | in pipelines: 23(GETNEXT)
| | |
| | F16:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| | 23:SCAN HDFS [tpcds_parquet.customer_address, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.16MB
| | predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | stored statistics:
| | table: rows=50.00K size=1.16MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=50.00K
| | parquet statistics predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | parquet dictionary predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=18 row-size=8B cardinality=8.33K
| | in pipelines: 23(GETNEXT)
| |
| 26:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: ws_sold_date_sk = d_date_sk
| | fk/pk conjuncts: ws_sold_date_sk = d_date_sk
| | runtime filters: RF022[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=16,17 row-size=32B cardinality=42.85K
| | in pipelines: 21(GETNEXT), 22(OPEN)
| |
| |--47:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=17 row-size=12B cardinality=108
| | | in pipelines: 22(GETNEXT)
| | |
| | F15:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| | 22:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 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(1998 AS INT), d_moy = CAST(9 AS INT)
| | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 AS INT)
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=17 row-size=12B cardinality=108
| | in pipelines: 22(GETNEXT)
| |
| 21:SCAN HDFS [tpcds_parquet.web_sales, RANDOM]
| HDFS partitions=1/1 files=2 size=45.09MB
| runtime filters: RF022[bloom] -> ws_sold_date_sk, RF020[bloom] -> ws_bill_addr_sk
| stored statistics:
| table: rows=719.38K size=45.09MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=644.77K
| mem-estimate=128.00MB mem-reservation=8.00MB thread-reservation=1
| tuple-ids=16 row-size=20B cardinality=719.38K
| in pipelines: 21(GETNEXT)
|
|--46:AGGREGATE [FINALIZE]
| | output: sum:merge(cs_ext_sales_price)
| | group by: i_item_id
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=44B cardinality=3.01K
| | in pipelines: 46(GETNEXT), 11(OPEN)
| |
| 45:EXCHANGE [HASH(i_item_id)]
| | mem-estimate=187.13KB mem-reservation=0B thread-reservation=0
| | tuple-ids=14 row-size=44B cardinality=3.01K
| | in pipelines: 11(GETNEXT)
| |
| F11:PLAN FRAGMENT [HASH(cs_item_sk)] hosts=3 instances=3
| Per-Host Resources: mem-estimate=16.00MB mem-reservation=6.88MB thread-reservation=1 runtime-filters-memory=1.00MB
| 20:AGGREGATE [STREAMING]
| | output: sum(cs_ext_sales_price)
| | group by: i_item_id
| | mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=14 row-size=44B cardinality=3.01K
| | in pipelines: 11(GETNEXT)
| |
| 19:HASH JOIN [LEFT SEMI JOIN, BROADCAST]
| | hash predicates: i_item_id = i_item_id
| | runtime filters: RF008[bloom] <- i_item_id
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8,9,10,11 row-size=76B cardinality=3.01K
| | in pipelines: 11(GETNEXT), 15(OPEN)
| |
| |--44:EXCHANGE [BROADCAST]
| | | mem-estimate=130.57KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=12 row-size=46B cardinality=1.80K
| | | in pipelines: 15(GETNEXT)
| | |
| | F12:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| | 15:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | predicates: i_category IN ('Music')
| | stored statistics:
| | table: rows=18.00K size=1.73MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=18.00K
| | parquet statistics predicates: i_category IN ('Music')
| | parquet dictionary predicates: i_category IN ('Music')
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=12 row-size=46B cardinality=1.80K
| | in pipelines: 15(GETNEXT)
| |
| 18:HASH JOIN [INNER JOIN, PARTITIONED]
| | hash predicates: cs_item_sk = i_item_sk
| | fk/pk conjuncts: cs_item_sk = i_item_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8,9,10,11 row-size=76B cardinality=14.81K
| | in pipelines: 11(GETNEXT), 14(OPEN)
| |
| |--43:EXCHANGE [HASH(i_item_sk)]
| | | mem-estimate=672.81KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=11 row-size=36B cardinality=18.00K
| | | in pipelines: 14(GETNEXT)
| | |
| | F10:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=33.00MB mem-reservation=1.50MB thread-reservation=2 runtime-filters-memory=1.00MB
| | 14:SCAN HDFS [tpcds_parquet.item, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.73MB
| | runtime filters: RF008[bloom] -> i_item_id
| | 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=512.00KB thread-reservation=1
| | tuple-ids=11 row-size=36B cardinality=18.00K
| | in pipelines: 14(GETNEXT)
| |
| 42:EXCHANGE [HASH(cs_item_sk)]
| | mem-estimate=348.84KB mem-reservation=0B thread-reservation=0
| | tuple-ids=8,9,10 row-size=40B cardinality=14.81K
| | in pipelines: 11(GETNEXT)
| |
| F07:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
| Per-Host Resources: mem-estimate=197.97MB mem-reservation=13.88MB thread-reservation=2 runtime-filters-memory=2.00MB
| 17:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_bill_addr_sk = ca_address_sk
| | fk/pk conjuncts: cs_bill_addr_sk = ca_address_sk
| | runtime filters: RF012[bloom] <- ca_address_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8,9,10 row-size=40B cardinality=14.81K
| | in pipelines: 11(GETNEXT), 13(OPEN)
| |
| |--41:EXCHANGE [BROADCAST]
| | | mem-estimate=77.10KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=10 row-size=8B cardinality=8.33K
| | | in pipelines: 13(GETNEXT)
| | |
| | F09:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| | 13:SCAN HDFS [tpcds_parquet.customer_address, RANDOM]
| | HDFS partitions=1/1 files=1 size=1.16MB
| | predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | stored statistics:
| | table: rows=50.00K size=1.16MB
| | columns: all
| | extrapolated-rows=disabled max-scan-range-rows=50.00K
| | parquet statistics predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | parquet dictionary predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| | mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| | tuple-ids=10 row-size=8B cardinality=8.33K
| | in pipelines: 13(GETNEXT)
| |
| 16:HASH JOIN [INNER JOIN, BROADCAST]
| | hash predicates: cs_sold_date_sk = d_date_sk
| | fk/pk conjuncts: cs_sold_date_sk = d_date_sk
| | runtime filters: RF014[bloom] <- d_date_sk
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| | tuple-ids=8,9 row-size=32B cardinality=85.31K
| | in pipelines: 11(GETNEXT), 12(OPEN)
| |
| |--40:EXCHANGE [BROADCAST]
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | | tuple-ids=9 row-size=12B cardinality=108
| | | in pipelines: 12(GETNEXT)
| | |
| | F08:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| | Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| | 12:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| | HDFS partitions=1/1 files=1 size=2.15MB
| | predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 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(1998 AS INT), d_moy = CAST(9 AS INT)
| | parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 AS INT)
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| | tuple-ids=9 row-size=12B cardinality=108
| | in pipelines: 12(GETNEXT)
| |
| 11:SCAN HDFS [tpcds_parquet.catalog_sales, RANDOM]
| HDFS partitions=1/1 files=3 size=96.62MB
| runtime filters: RF014[bloom] -> cs_sold_date_sk, RF012[bloom] -> cs_bill_addr_sk
| stored statistics:
| table: rows=1.44M size=96.62MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=650.14K
| mem-estimate=192.00MB mem-reservation=8.00MB thread-reservation=1
| tuple-ids=8 row-size=20B cardinality=1.44M
| in pipelines: 11(GETNEXT)
|
39:AGGREGATE [FINALIZE]
| output: sum:merge(ss_ext_sales_price)
| group by: i_item_id
| mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=6 row-size=44B cardinality=5.79K
| in pipelines: 39(GETNEXT), 01(OPEN)
|
38:EXCHANGE [HASH(i_item_id)]
| mem-estimate=227.00KB mem-reservation=0B thread-reservation=0
| tuple-ids=6 row-size=44B cardinality=5.79K
| in pipelines: 01(GETNEXT)
|
F04:PLAN FRAGMENT [HASH(ss_item_sk)] hosts=3 instances=3
Per-Host Resources: mem-estimate=17.17MB mem-reservation=7.88MB thread-reservation=1 runtime-filters-memory=2.00MB
10:AGGREGATE [STREAMING]
| output: sum(ss_ext_sales_price)
| group by: i_item_id
| mem-estimate=10.00MB mem-reservation=2.00MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=6 row-size=44B cardinality=5.79K
| in pipelines: 01(GETNEXT)
|
09:HASH JOIN [LEFT SEMI JOIN, BROADCAST]
| hash predicates: i_item_id = i_item_id
| runtime filters: RF000[bloom] <- i_item_id
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2,3 row-size=76B cardinality=5.79K
| in pipelines: 01(GETNEXT), 05(OPEN)
|
|--37:EXCHANGE [BROADCAST]
| | mem-estimate=130.57KB mem-reservation=0B thread-reservation=0
| | tuple-ids=4 row-size=46B cardinality=1.80K
| | in pipelines: 05(GETNEXT)
| |
| F05:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| 05:SCAN HDFS [tpcds_parquet.item, RANDOM]
| HDFS partitions=1/1 files=1 size=1.73MB
| predicates: i_category IN ('Music')
| stored statistics:
| table: rows=18.00K size=1.73MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=18.00K
| parquet statistics predicates: i_category IN ('Music')
| parquet dictionary predicates: i_category IN ('Music')
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=4 row-size=46B cardinality=1.80K
| in pipelines: 05(GETNEXT)
|
08:HASH JOIN [INNER JOIN, PARTITIONED]
| hash predicates: ss_item_sk = i_item_sk
| fk/pk conjuncts: ss_item_sk = i_item_sk
| runtime filters: RF002[bloom] <- i_item_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2,3 row-size=76B cardinality=28.50K
| in pipelines: 01(GETNEXT), 04(OPEN)
|
|--36:EXCHANGE [HASH(i_item_sk)]
| | mem-estimate=672.81KB mem-reservation=0B thread-reservation=0
| | tuple-ids=3 row-size=36B cardinality=18.00K
| | in pipelines: 04(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
| 04:SCAN HDFS [tpcds_parquet.item, RANDOM]
| HDFS partitions=1/1 files=1 size=1.73MB
| runtime filters: RF000[bloom] -> i_item_id
| 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=512.00KB thread-reservation=1
| tuple-ids=3 row-size=36B cardinality=18.00K
| in pipelines: 04(GETNEXT)
|
35:EXCHANGE [HASH(ss_item_sk)]
| mem-estimate=527.13KB mem-reservation=0B thread-reservation=0
| tuple-ids=0,1,2 row-size=40B cardinality=28.50K
| in pipelines: 01(GETNEXT)
|
F00:PLAN FRAGMENT [RANDOM] hosts=3 instances=3
Per-Host Resources: mem-estimate=54.97MB mem-reservation=8.88MB thread-reservation=2 runtime-filters-memory=3.00MB
07:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: ss_addr_sk = ca_address_sk
| fk/pk conjuncts: ss_addr_sk = ca_address_sk
| runtime filters: RF004[bloom] <- ca_address_sk
| mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0
| tuple-ids=0,1,2 row-size=40B cardinality=28.50K
| in pipelines: 01(GETNEXT), 03(OPEN)
|
|--34:EXCHANGE [BROADCAST]
| | mem-estimate=77.10KB mem-reservation=0B thread-reservation=0
| | tuple-ids=2 row-size=8B cardinality=8.33K
| | in pipelines: 03(GETNEXT)
| |
| F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=2
| 03:SCAN HDFS [tpcds_parquet.customer_address, RANDOM]
| HDFS partitions=1/1 files=1 size=1.16MB
| predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| stored statistics:
| table: rows=50.00K size=1.16MB
| columns: all
| extrapolated-rows=disabled max-scan-range-rows=50.00K
| parquet statistics predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| parquet dictionary predicates: ca_gmt_offset = CAST(-5 AS DECIMAL(3,0))
| mem-estimate=32.00MB mem-reservation=256.00KB thread-reservation=1
| tuple-ids=2 row-size=8B cardinality=8.33K
| in pipelines: 03(GETNEXT)
|
06:HASH JOIN [INNER JOIN, BROADCAST]
| hash predicates: ss_sold_date_sk = d_date_sk
| fk/pk conjuncts: ss_sold_date_sk = d_date_sk
| runtime filters: 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=32B cardinality=170.55K
| in pipelines: 01(GETNEXT), 02(OPEN)
|
|--33:EXCHANGE [BROADCAST]
| | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0
| | tuple-ids=1 row-size=12B cardinality=108
| | in pipelines: 02(GETNEXT)
| |
| F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1
| Per-Host Resources: mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=2
| 02:SCAN HDFS [tpcds_parquet.date_dim, RANDOM]
| HDFS partitions=1/1 files=1 size=2.15MB
| predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 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(1998 AS INT), d_moy = CAST(9 AS INT)
| parquet dictionary predicates: d_year = CAST(1998 AS INT), d_moy = CAST(9 AS INT)
| mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1
| tuple-ids=1 row-size=12B cardinality=108
| in pipelines: 02(GETNEXT)
|
01:SCAN HDFS [tpcds_parquet.store_sales, RANDOM]
HDFS partitions=1824/1824 files=1824 size=200.95MB
runtime filters: RF006[bloom] -> ss_sold_date_sk, RF004[bloom] -> ss_addr_sk, RF002[bloom] -> ss_item_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=48.00MB mem-reservation=2.00MB thread-reservation=1
tuple-ids=0 row-size=20B cardinality=2.88M
in pipelines: 01(GETNEXT)
====