-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): remove unnecessary
select
from set operations (#9438)
- Loading branch information
Showing
31 changed files
with
269 additions
and
408 deletions.
There are no files selected for viewing
14 changes: 5 additions & 9 deletions
14
...ackends/bigquery/tests/unit/snapshots/test_compiler/test_set_operation/difference/out.sql
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,11 +1,7 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM `t0` AS `t0` | ||
EXCEPT DISTINCT | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` | ||
) AS `t2` | ||
FROM `t0` AS `t0` | ||
EXCEPT DISTINCT | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` |
14 changes: 5 additions & 9 deletions
14
...backends/bigquery/tests/unit/snapshots/test_compiler/test_set_operation/intersect/out.sql
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,11 +1,7 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM `t0` AS `t0` | ||
INTERSECT DISTINCT | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` | ||
) AS `t2` | ||
FROM `t0` AS `t0` | ||
INTERSECT DISTINCT | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` |
14 changes: 5 additions & 9 deletions
14
...backends/bigquery/tests/unit/snapshots/test_compiler/test_set_operation/union_all/out.sql
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,11 +1,7 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM `t0` AS `t0` | ||
UNION ALL | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` | ||
) AS `t2` | ||
FROM `t0` AS `t0` | ||
UNION ALL | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` |
14 changes: 5 additions & 9 deletions
14
...nds/bigquery/tests/unit/snapshots/test_compiler/test_set_operation/union_distinct/out.sql
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,11 +1,7 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM `t0` AS `t0` | ||
UNION DISTINCT | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` | ||
) AS `t2` | ||
FROM `t0` AS `t0` | ||
UNION DISTINCT | ||
SELECT | ||
* | ||
FROM `t1` AS `t1` |
14 changes: 5 additions & 9 deletions
14
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_union/False/out.sql
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,11 +1,7 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM `functional_alltypes` AS `t0` | ||
UNION ALL | ||
SELECT | ||
* | ||
FROM `functional_alltypes` AS `t0` | ||
) AS `t1` | ||
FROM `functional_alltypes` AS `t0` | ||
UNION ALL | ||
SELECT | ||
* | ||
FROM `functional_alltypes` AS `t0` |
14 changes: 5 additions & 9 deletions
14
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_union/True/out.sql
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,11 +1,7 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM `functional_alltypes` AS `t0` | ||
UNION DISTINCT | ||
SELECT | ||
* | ||
FROM `functional_alltypes` AS `t0` | ||
) AS `t1` | ||
FROM `functional_alltypes` AS `t0` | ||
UNION DISTINCT | ||
SELECT | ||
* | ||
FROM `functional_alltypes` AS `t0` |
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
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
Oops, something went wrong.