-
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.
fix incorrect results when correlated subquery returns zero rows
- Loading branch information
1 parent
f5b1e89
commit cdb4f8f
Showing
18 changed files
with
600 additions
and
373 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
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
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
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
133 changes: 81 additions & 52 deletions
133
testing/trino-tests/src/test/resources/sql/presto/tpcds/hive/partitioned/q09.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,93 +1,122 @@ | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
cross join: | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
scan reason | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
join (LEFT, REPLICATED): | ||
join (LEFT, REPLICATED): | ||
join (LEFT, REPLICATED): | ||
join (LEFT, REPLICATED): | ||
join (LEFT, REPLICATED): | ||
join (LEFT, REPLICATED): | ||
join (LEFT, REPLICATED): | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
join (RIGHT, PARTITIONED): | ||
remote exchange (REPARTITION, HASH, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPARTITION, HASH, []) | ||
scan reason | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (REPLICATE, BROADCAST, []) | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales | ||
final aggregation over () | ||
local exchange (GATHER, SINGLE, []) | ||
remote exchange (GATHER, SINGLE, []) | ||
partial aggregation over () | ||
scan store_sales |
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
Oops, something went wrong.