-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upcast schemas if needed during set ops
- Loading branch information
Showing
8 changed files
with
169 additions
and
26 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
ibis/backends/tests/sql/snapshots/test_sql/test_union_unified_schemas/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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
"t0"."id", | ||
CAST("t0"."tinyint_col" AS BIGINT) AS "i", | ||
CAST(CAST("t0"."string_col" AS TEXT) AS TEXT) AS "s" | ||
FROM "functional_alltypes" AS "t0" | ||
) AS "t2" | ||
UNION ALL | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
"t0"."id", | ||
"t0"."bigint_col" + 256 AS "i", | ||
"t0"."string_col" AS "s" | ||
FROM "functional_alltypes" AS "t0" | ||
) AS "t1" | ||
) AS "t3" | ||
ORDER BY | ||
"t3"."id" ASC, | ||
"t3"."i" ASC, | ||
"t3"."s" ASC |
27 changes: 27 additions & 0 deletions
27
ibis/backends/tests/sql/snapshots/test_sql/test_union_unified_schemas/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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
"t0"."id", | ||
CAST("t0"."tinyint_col" AS BIGINT) AS "i", | ||
CAST(CAST("t0"."string_col" AS TEXT) AS TEXT) AS "s" | ||
FROM "functional_alltypes" AS "t0" | ||
) AS "t2" | ||
UNION | ||
SELECT | ||
* | ||
FROM ( | ||
SELECT | ||
"t0"."id", | ||
"t0"."bigint_col" + 256 AS "i", | ||
"t0"."string_col" AS "s" | ||
FROM "functional_alltypes" AS "t0" | ||
) AS "t1" | ||
) AS "t3" | ||
ORDER BY | ||
"t3"."id" ASC, | ||
"t3"."i" ASC, | ||
"t3"."s" ASC |
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