-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Choose join side with small tables as build side
Choose join side with small tables as build (and replicated if possible) side when CBO fails to determine join distribution type.
- Loading branch information
Showing
11 changed files
with
617 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 40 additions & 42 deletions
82
presto-benchto-benchmarks/src/test/resources/sql/presto/tpcds/q44.plan.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,48 @@ | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
join (INNER, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, ["ss_item_sk_26"]) | ||
join (INNER, REPLICATED): | ||
join (INNER, REPLICATED): | ||
join (INNER, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, ["ss_item_sk"]) | ||
join (INNER, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, ["rank"]) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
cross join: | ||
final aggregation over (ss_item_sk) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_item_sk"]) | ||
partial aggregation over (ss_item_sk) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
final aggregation over (ss_store_sk_7) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_store_sk_7"]) | ||
partial aggregation over (ss_store_sk_7) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["rank_74"]) | ||
remote exchange (REPARTITION, HASH, ["rank"]) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
cross join: | ||
final aggregation over (ss_item_sk) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_item_sk"]) | ||
partial aggregation over (ss_item_sk) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
cross join: | ||
final aggregation over (ss_item_sk_26) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_item_sk_26"]) | ||
partial aggregation over (ss_item_sk_26) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
final aggregation over (ss_store_sk_7) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
final aggregation over (ss_store_sk_56) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_store_sk_56"]) | ||
partial aggregation over (ss_store_sk_56) | ||
scan store_sales | ||
remote exchange (REPARTITION, HASH, ["ss_store_sk_7"]) | ||
partial aggregation over (ss_store_sk_7) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["i_item_sk"]) | ||
scan item | ||
remote exchange (REPARTITION, HASH, ["rank_74"]) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
cross join: | ||
final aggregation over (ss_item_sk_26) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_item_sk_26"]) | ||
partial aggregation over (ss_item_sk_26) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
final aggregation over (ss_store_sk_56) | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["ss_store_sk_56"]) | ||
partial aggregation over (ss_store_sk_56) | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
scan item | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, ["i_item_sk_75"]) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
scan item |
Oops, something went wrong.