| # TPCDS-Q21 |
| SELECT * |
| FROM |
| (SELECT w_warehouse_name, |
| i_item_id, |
| sum(CASE |
| WHEN (cast(d_date AS date) < CAST ('2000-03-11' AS date)) THEN inv_quantity_on_hand |
| ELSE 0 |
| END) AS inv_before, |
| sum(CASE |
| WHEN (cast(d_date AS date) >= CAST ('2000-03-11' AS date)) THEN inv_quantity_on_hand |
| ELSE 0 |
| END) AS inv_after |
| FROM inventory, |
| warehouse, |
| item, |
| date_dim |
| WHERE i_current_price BETWEEN 0.99 AND 1.49 |
| AND i_item_sk = inv_item_sk |
| AND inv_warehouse_sk = w_warehouse_sk |
| AND inv_date_sk = d_date_sk |
| AND d_date BETWEEN CAST ('2000-02-10' AS date) AND CAST ('2000-04-10' AS date) |
| GROUP BY w_warehouse_name, |
| i_item_id) x |
| WHERE (CASE |
| WHEN inv_before > 0 THEN (inv_after*1.000) / inv_before |
| ELSE NULL |
| END) BETWEEN 2.000/3.000 AND 3.000/2.000 |
| ORDER BY w_warehouse_name, |
| i_item_id |
| LIMIT 100; |
| |
| ---- PLAN |
| Max Per-Host Resource Reservation: Memory=29.56MB Threads=5 |
| Per-Host Resource Estimates: Memory=249MB |
| F00:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=248.81MB mem-reservation=29.56MB thread-reservation=5 runtime-filters-memory=3.00MB |
| PLAN-ROOT SINK |
| | output exprs: w_warehouse_name, i_item_id, inv_before, inv_after |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 08:TOP-N [LIMIT=100] |
| | order by: w_warehouse_name ASC, i_item_id ASC |
| | mem-estimate=7.18KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=6 row-size=74B cardinality=100 |
| | in pipelines: 08(GETNEXT), 07(OPEN) |
| | |
| 07:AGGREGATE [FINALIZE] |
| | output: sum(CAST(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE CAST(0 AS INT) END AS BIGINT)), sum(CAST(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE CAST(0 AS INT) END AS BIGINT)) |
| | group by: w_warehouse_name, i_item_id |
| | having: (CASE WHEN sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) > CAST(0 AS BIGINT) THEN (CAST(sum(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) * CAST(1.000 AS DECIMAL(4,3))) / CAST(sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) ELSE NULL END) <= CAST(1.50000000 AS DECIMAL(12,8)), (CASE WHEN sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) > CAST(0 AS BIGINT) THEN (CAST(sum(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) * CAST(1.000 AS DECIMAL(4,3))) / CAST(sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) ELSE NULL END) >= CAST(0.66666667 AS DECIMAL(12,8)) |
| | mem-estimate=10.00MB mem-reservation=4.75MB spill-buffer=256.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=3.54K |
| | in pipelines: 07(GETNEXT), 00(OPEN) |
| | |
| 06:HASH JOIN [INNER JOIN] |
| | hash predicates: inv_date_sk = d_date_sk |
| | fk/pk conjuncts: inv_date_sk = d_date_sk |
| | runtime filters: RF000[bloom] <- d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2,1,3 row-size=120B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 03(OPEN) |
| | |
| |--03:SCAN HDFS [tpcds_parquet.date_dim] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| | tuple-ids=3 row-size=26B cardinality=7.30K |
| | in pipelines: 03(GETNEXT) |
| | |
| 05:HASH JOIN [INNER JOIN] |
| | hash predicates: inv_warehouse_sk = w_warehouse_sk |
| | fk/pk conjuncts: inv_warehouse_sk = w_warehouse_sk |
| | runtime filters: RF002[bloom] <- w_warehouse_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2,1 row-size=94B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--01:SCAN HDFS [tpcds_parquet.warehouse] |
| | HDFS partitions=1/1 files=1 size=4.38KB |
| | stored statistics: |
| | table: rows=5 size=4.38KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=5 |
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | tuple-ids=1 row-size=34B cardinality=5 |
| | in pipelines: 01(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN] |
| | hash predicates: inv_item_sk = i_item_sk |
| | fk/pk conjuncts: inv_item_sk = i_item_sk |
| | runtime filters: RF004[bloom] <- i_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2 row-size=60B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--02:SCAN HDFS [tpcds_parquet.item] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | parquet statistics predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | parquet dictionary predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=2 row-size=40B cardinality=1.80K |
| | in pipelines: 02(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_parquet.inventory] |
| HDFS partitions=1/1 files=2 size=34.09MB |
| runtime filters: RF000[bloom] -> inv_date_sk, RF002[bloom] -> inv_warehouse_sk, RF004[bloom] -> inv_item_sk |
| stored statistics: |
| table: rows=11.74M size=34.09MB |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=6.66M |
| mem-estimate=128.00MB mem-reservation=16.00MB thread-reservation=1 |
| tuple-ids=0 row-size=20B cardinality=11.74M |
| in pipelines: 00(GETNEXT) |
| ---- DISTRIBUTEDPLAN |
| Max Per-Host Resource Reservation: Memory=33.27MB Threads=10 |
| Per-Host Resource Estimates: Memory=271MB |
| F05:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=18.73KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: w_warehouse_name, i_item_id, inv_before, inv_after |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 14:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: w_warehouse_name ASC, i_item_id ASC |
| | limit: 100 |
| | mem-estimate=18.73KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=6 row-size=74B cardinality=100 |
| | in pipelines: 08(GETNEXT) |
| | |
| F04:PLAN FRAGMENT [HASH(w_warehouse_name,i_item_id)] hosts=2 instances=2 |
| Per-Host Resources: mem-estimate=11.39MB mem-reservation=1.94MB thread-reservation=1 |
| 08:TOP-N [LIMIT=100] |
| | order by: w_warehouse_name ASC, i_item_id ASC |
| | mem-estimate=7.18KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=6 row-size=74B cardinality=100 |
| | in pipelines: 08(GETNEXT), 13(OPEN) |
| | |
| 13:AGGREGATE [FINALIZE] |
| | output: sum:merge(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END), sum:merge(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) |
| | group by: w_warehouse_name, i_item_id |
| | having: (CASE WHEN sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) > CAST(0 AS BIGINT) THEN (CAST(sum(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) * CAST(1.000 AS DECIMAL(4,3))) / CAST(sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) ELSE NULL END) <= CAST(1.50000000 AS DECIMAL(12,8)), (CASE WHEN sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) > CAST(0 AS BIGINT) THEN (CAST(sum(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) * CAST(1.000 AS DECIMAL(4,3))) / CAST(sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) ELSE NULL END) >= CAST(0.66666667 AS DECIMAL(12,8)) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=3.54K |
| | in pipelines: 13(GETNEXT), 00(OPEN) |
| | |
| 12:EXCHANGE [HASH(w_warehouse_name,i_item_id)] |
| | mem-estimate=1.39MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=35.42K |
| | in pipelines: 00(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| Per-Host Resources: mem-estimate=147.15MB mem-reservation=29.81MB thread-reservation=2 runtime-filters-memory=3.00MB |
| 07:AGGREGATE [STREAMING] |
| | output: sum(CAST(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE CAST(0 AS INT) END AS BIGINT)), sum(CAST(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE CAST(0 AS INT) END AS BIGINT)) |
| | group by: w_warehouse_name, i_item_id |
| | mem-estimate=10.00MB mem-reservation=5.00MB spill-buffer=256.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=35.42K |
| | in pipelines: 00(GETNEXT) |
| | |
| 06:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: inv_date_sk = d_date_sk |
| | fk/pk conjuncts: inv_date_sk = d_date_sk |
| | runtime filters: RF000[bloom] <- d_date_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2,1,3 row-size=120B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 03(OPEN) |
| | |
| |--11:EXCHANGE [BROADCAST] |
| | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=26B cardinality=7.30K |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=2 |
| | 03:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | mem-estimate=32.00MB mem-reservation=1.00MB thread-reservation=1 |
| | tuple-ids=3 row-size=26B cardinality=7.30K |
| | in pipelines: 03(GETNEXT) |
| | |
| 05:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: inv_warehouse_sk = w_warehouse_sk |
| | fk/pk conjuncts: inv_warehouse_sk = w_warehouse_sk |
| | runtime filters: RF002[bloom] <- w_warehouse_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2,1 row-size=94B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--10:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=34B cardinality=5 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Host Resources: mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=2 |
| | 01:SCAN HDFS [tpcds_parquet.warehouse, RANDOM] |
| | HDFS partitions=1/1 files=1 size=4.38KB |
| | stored statistics: |
| | table: rows=5 size=4.38KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=5 |
| | mem-estimate=32.00MB mem-reservation=16.00KB thread-reservation=1 |
| | tuple-ids=1 row-size=34B cardinality=5 |
| | in pipelines: 01(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash predicates: inv_item_sk = i_item_sk |
| | fk/pk conjuncts: inv_item_sk = i_item_sk |
| | runtime filters: RF004[bloom] <- i_item_sk |
| | mem-estimate=1.94MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2 row-size=60B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--09:EXCHANGE [BROADCAST] |
| | | mem-estimate=114.31KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=40B cardinality=1.80K |
| | | 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.item, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | parquet statistics predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | parquet dictionary predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | mem-estimate=48.00MB mem-reservation=512.00KB thread-reservation=1 |
| | tuple-ids=2 row-size=40B cardinality=1.80K |
| | in pipelines: 02(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_parquet.inventory, RANDOM] |
| HDFS partitions=1/1 files=2 size=34.09MB |
| runtime filters: RF000[bloom] -> inv_date_sk, RF002[bloom] -> inv_warehouse_sk, RF004[bloom] -> inv_item_sk |
| stored statistics: |
| table: rows=11.74M size=34.09MB |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=6.66M |
| mem-estimate=128.00MB mem-reservation=16.00MB thread-reservation=1 |
| tuple-ids=0 row-size=20B cardinality=11.74M |
| in pipelines: 00(GETNEXT) |
| ---- PARALLELPLANS |
| Max Per-Host Resource Reservation: Memory=42.08MB Threads=9 |
| Per-Host Resource Estimates: Memory=119MB |
| F05:PLAN FRAGMENT [UNPARTITIONED] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=18.73KB mem-reservation=0B thread-reservation=1 |
| PLAN-ROOT SINK |
| | output exprs: w_warehouse_name, i_item_id, inv_before, inv_after |
| | mem-estimate=0B mem-reservation=0B thread-reservation=0 |
| | |
| 14:MERGING-EXCHANGE [UNPARTITIONED] |
| | order by: w_warehouse_name ASC, i_item_id ASC |
| | limit: 100 |
| | mem-estimate=18.73KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=6 row-size=74B cardinality=100 |
| | in pipelines: 08(GETNEXT) |
| | |
| F04:PLAN FRAGMENT [HASH(w_warehouse_name,i_item_id)] hosts=2 instances=2 |
| Per-Instance Resources: mem-estimate=11.39MB mem-reservation=1.94MB thread-reservation=1 |
| 08:TOP-N [LIMIT=100] |
| | order by: w_warehouse_name ASC, i_item_id ASC |
| | mem-estimate=7.18KB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=6 row-size=74B cardinality=100 |
| | in pipelines: 08(GETNEXT), 13(OPEN) |
| | |
| 13:AGGREGATE [FINALIZE] |
| | output: sum:merge(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END), sum:merge(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) |
| | group by: w_warehouse_name, i_item_id |
| | having: (CASE WHEN sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) > CAST(0 AS BIGINT) THEN (CAST(sum(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) * CAST(1.000 AS DECIMAL(4,3))) / CAST(sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) ELSE NULL END) <= CAST(1.50000000 AS DECIMAL(12,8)), (CASE WHEN sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) > CAST(0 AS BIGINT) THEN (CAST(sum(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) * CAST(1.000 AS DECIMAL(4,3))) / CAST(sum(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE 0 END) AS DECIMAL(19,0)) ELSE NULL END) >= CAST(0.66666667 AS DECIMAL(12,8)) |
| | mem-estimate=10.00MB mem-reservation=1.94MB spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=3.54K |
| | in pipelines: 13(GETNEXT), 00(OPEN) |
| | |
| 12:EXCHANGE [HASH(w_warehouse_name,i_item_id)] |
| | mem-estimate=1.39MB mem-reservation=0B thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=35.42K |
| | in pipelines: 00(GETNEXT) |
| | |
| F00:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| 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=42.00MB mem-reservation=21.00MB thread-reservation=1 |
| 07:AGGREGATE [STREAMING] |
| | output: sum(CAST(CASE WHEN (CAST(d_date AS DATE) < DATE '2000-03-11') THEN inv_quantity_on_hand ELSE CAST(0 AS INT) END AS BIGINT)), sum(CAST(CASE WHEN (CAST(d_date AS DATE) >= DATE '2000-03-11') THEN inv_quantity_on_hand ELSE CAST(0 AS INT) END AS BIGINT)) |
| | group by: w_warehouse_name, i_item_id |
| | mem-estimate=10.00MB mem-reservation=5.00MB spill-buffer=256.00KB thread-reservation=0 |
| | tuple-ids=4 row-size=74B cardinality=35.42K |
| | in pipelines: 00(GETNEXT) |
| | |
| 06:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=00 |
| | hash predicates: inv_date_sk = d_date_sk |
| | fk/pk conjuncts: inv_date_sk = d_date_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2,1,3 row-size=120B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 03(OPEN) |
| | |
| |--F06:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | | Per-Instance Resources: mem-estimate=5.09MB 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: d_date_sk |
| | | runtime filters: RF000[bloom] <- d_date_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 11:EXCHANGE [BROADCAST] |
| | | mem-estimate=215.48KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=3 row-size=26B cardinality=7.30K |
| | | in pipelines: 03(GETNEXT) |
| | | |
| | F03:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=1 |
| | 03:SCAN HDFS [tpcds_parquet.date_dim, RANDOM] |
| | HDFS partitions=1/1 files=1 size=2.15MB |
| | predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | stored statistics: |
| | table: rows=73.05K size=2.15MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=73.05K |
| | parquet statistics predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | parquet dictionary predicates: CAST(d_date AS DATE) <= DATE '2000-04-10', CAST(d_date AS DATE) >= DATE '2000-02-10' |
| | mem-estimate=16.00MB mem-reservation=1.00MB thread-reservation=0 |
| | tuple-ids=3 row-size=26B cardinality=7.30K |
| | in pipelines: 03(GETNEXT) |
| | |
| 05:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=01 |
| | hash predicates: inv_warehouse_sk = w_warehouse_sk |
| | fk/pk conjuncts: inv_warehouse_sk = w_warehouse_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2,1 row-size=94B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 01(OPEN) |
| | |
| |--F07:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | | 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: w_warehouse_sk |
| | | runtime filters: RF002[bloom] <- w_warehouse_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 10:EXCHANGE [BROADCAST] |
| | | mem-estimate=16.00KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=1 row-size=34B cardinality=5 |
| | | in pipelines: 01(GETNEXT) |
| | | |
| | F02:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=1 |
| | 01:SCAN HDFS [tpcds_parquet.warehouse, RANDOM] |
| | HDFS partitions=1/1 files=1 size=4.38KB |
| | stored statistics: |
| | table: rows=5 size=4.38KB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=5 |
| | mem-estimate=16.00MB mem-reservation=16.00KB thread-reservation=0 |
| | tuple-ids=1 row-size=34B cardinality=5 |
| | in pipelines: 01(GETNEXT) |
| | |
| 04:HASH JOIN [INNER JOIN, BROADCAST] |
| | hash-table-id=02 |
| | hash predicates: inv_item_sk = i_item_sk |
| | fk/pk conjuncts: inv_item_sk = i_item_sk |
| | mem-estimate=0B mem-reservation=0B spill-buffer=64.00KB thread-reservation=0 |
| | tuple-ids=0,2 row-size=60B cardinality=1.17M |
| | in pipelines: 00(GETNEXT), 02(OPEN) |
| | |
| |--F08:PLAN FRAGMENT [RANDOM] hosts=2 instances=2 |
| | | Per-Instance Resources: mem-estimate=4.99MB mem-reservation=4.88MB thread-reservation=1 runtime-filters-memory=1.00MB |
| | JOIN BUILD |
| | | join-table-id=02 plan-id=03 cohort-id=01 |
| | | build expressions: i_item_sk |
| | | runtime filters: RF004[bloom] <- i_item_sk |
| | | mem-estimate=3.88MB mem-reservation=3.88MB spill-buffer=64.00KB thread-reservation=0 |
| | | |
| | 09:EXCHANGE [BROADCAST] |
| | | mem-estimate=114.31KB mem-reservation=0B thread-reservation=0 |
| | | tuple-ids=2 row-size=40B cardinality=1.80K |
| | | in pipelines: 02(GETNEXT) |
| | | |
| | F01:PLAN FRAGMENT [RANDOM] hosts=1 instances=1 |
| | Per-Instance Resources: mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=1 |
| | 02:SCAN HDFS [tpcds_parquet.item, RANDOM] |
| | HDFS partitions=1/1 files=1 size=1.73MB |
| | predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | stored statistics: |
| | table: rows=18.00K size=1.73MB |
| | columns: all |
| | extrapolated-rows=disabled max-scan-range-rows=18.00K |
| | parquet statistics predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | parquet dictionary predicates: i_current_price <= CAST(1.49 AS DECIMAL(3,2)), i_current_price >= CAST(0.99 AS DECIMAL(2,2)) |
| | mem-estimate=16.00MB mem-reservation=512.00KB thread-reservation=0 |
| | tuple-ids=2 row-size=40B cardinality=1.80K |
| | in pipelines: 02(GETNEXT) |
| | |
| 00:SCAN HDFS [tpcds_parquet.inventory, RANDOM] |
| HDFS partitions=1/1 files=2 size=34.09MB |
| runtime filters: RF000[bloom] -> inv_date_sk, RF002[bloom] -> inv_warehouse_sk, RF004[bloom] -> inv_item_sk |
| stored statistics: |
| table: rows=11.74M size=34.09MB |
| columns: all |
| extrapolated-rows=disabled max-scan-range-rows=6.66M |
| mem-estimate=32.00MB mem-reservation=16.00MB thread-reservation=0 |
| tuple-ids=0 row-size=20B cardinality=11.74M |
| in pipelines: 00(GETNEXT) |
| ==== |