-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11315 from Mytherin/issue11294
Fix #11294 - avoid applying Filter Pushdown optimization for UNION/EXCEPT without ALL
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# name: test/sql/setops/test_union_except_empty.test | ||
# description: Test order of UNION statements | ||
# group: [setops] | ||
|
||
statement ok | ||
PRAGMA enable_verification | ||
|
||
statement ok | ||
create table t (i int); | ||
|
||
statement ok | ||
insert into t values (1),(2),(3),(4),(4); | ||
|
||
query I | ||
select i from t union select 1 where false order by 1; | ||
---- | ||
1 | ||
2 | ||
3 | ||
4 | ||
|
||
query I | ||
select i from t except select 1 where false order by 1; | ||
---- | ||
1 | ||
2 | ||
3 | ||
4 |