-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(snowflake): make sure ephemeral tables following backend quoting …
…rules
- Loading branch information
Showing
9 changed files
with
76 additions
and
52 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
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
26 changes: 13 additions & 13 deletions
26
ibis/backends/tests/snapshots/test_generic/test_many_subqueries/snowflake/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,32 +1,32 @@ | ||
WITH t0 AS ( | ||
SELECT | ||
t5.street AS street, | ||
ROW_NUMBER() OVER (ORDER BY t5.street) - 1 AS key | ||
FROM data AS t5 | ||
t5."street" AS "street", | ||
ROW_NUMBER() OVER (ORDER BY t5."street") - 1 AS "key" | ||
FROM "data" AS t5 | ||
), t1 AS ( | ||
SELECT | ||
t0.key AS key | ||
t0."key" AS "key" | ||
FROM t0 | ||
), t2 AS ( | ||
SELECT | ||
t0.street AS street, | ||
t0.key AS key | ||
t0."street" AS "street", | ||
t0."key" AS "key" | ||
FROM t0 | ||
JOIN t1 | ||
ON t0.key = t1.key | ||
ON t0."key" = t1."key" | ||
), t3 AS ( | ||
SELECT | ||
t2.street AS street, | ||
ROW_NUMBER() OVER (ORDER BY t2.street) - 1 AS key | ||
t2."street" AS "street", | ||
ROW_NUMBER() OVER (ORDER BY t2."street") - 1 AS "key" | ||
FROM t2 | ||
), t4 AS ( | ||
SELECT | ||
t3.key AS key | ||
t3."key" AS "key" | ||
FROM t3 | ||
) | ||
SELECT | ||
t3.street, | ||
t3.key | ||
t3."street", | ||
t3."key" | ||
FROM t3 | ||
JOIN t4 | ||
ON t3.key = t4.key | ||
ON t3."key" = t4."key" |
14 changes: 7 additions & 7 deletions
14
ibis/backends/tests/snapshots/test_sql/test_cte_refs_in_topo_order/snowflake/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,22 +1,22 @@ | ||
WITH t0 AS ( | ||
SELECT | ||
t4.key AS key | ||
FROM leaf AS t4 | ||
t4."key" AS "key" | ||
FROM "leaf" AS t4 | ||
WHERE | ||
TRUE | ||
), t1 AS ( | ||
SELECT | ||
t0.key AS key | ||
t0."key" AS "key" | ||
FROM t0 | ||
), t2 AS ( | ||
SELECT | ||
t0.key AS key | ||
t0."key" AS "key" | ||
FROM t0 | ||
JOIN t1 | ||
ON t0.key = t1.key | ||
ON t0."key" = t1."key" | ||
) | ||
SELECT | ||
t2.key | ||
t2."key" | ||
FROM t2 | ||
JOIN t2 AS t3 | ||
ON t2.key = t3.key | ||
ON t2."key" = t3."key" |
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
12 changes: 6 additions & 6 deletions
12
ibis/backends/tests/snapshots/test_sql/test_isin_bug/snowflake/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,13 +1,13 @@ | ||
SELECT | ||
t0.x IN ( | ||
t0."x" IN ( | ||
SELECT | ||
t1.x | ||
t1."x" | ||
FROM ( | ||
SELECT | ||
t0.x AS x | ||
FROM t AS t0 | ||
t0."x" AS "x" | ||
FROM "t" AS t0 | ||
WHERE | ||
t0.x > 2 | ||
t0."x" > 2 | ||
) AS t1 | ||
) AS "Contains(x, x)" | ||
FROM t AS t0 | ||
FROM "t" AS t0 |