diff --git a/ibis/backends/tests/snapshots/test_generic/test_many_subqueries/snowflake/out.sql b/ibis/backends/tests/snapshots/test_generic/test_many_subqueries/snowflake/out.sql index f7cf54e9de51..d63129cc6985 100644 --- a/ibis/backends/tests/snapshots/test_generic/test_many_subqueries/snowflake/out.sql +++ b/ibis/backends/tests/snapshots/test_generic/test_many_subqueries/snowflake/out.sql @@ -6,7 +6,7 @@ FROM ( SELECT "t1"."street" AS "street", ROW_NUMBER() OVER (ORDER BY "t1"."street" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "key", - "t2"."key" AS "key_right" + "t3"."key" AS "key_right" FROM ( SELECT "t0"."street" AS "street", @@ -22,8 +22,8 @@ FROM ( ROW_NUMBER() OVER (ORDER BY "t0"."street" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "key" FROM "data" AS "t0" ) AS "t1" - ) AS "t2" - ON "t1"."key" = "t2"."key" + ) AS "t3" + ON "t1"."key" = "t3"."key" ) AS "t5" INNER JOIN ( SELECT @@ -32,7 +32,7 @@ INNER JOIN ( SELECT "t1"."street" AS "street", ROW_NUMBER() OVER (ORDER BY "t1"."street" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "key", - "t2"."key" AS "key_right" + "t3"."key" AS "key_right" FROM ( SELECT "t0"."street" AS "street", @@ -48,8 +48,8 @@ INNER JOIN ( ROW_NUMBER() OVER (ORDER BY "t0"."street" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "key" FROM "data" AS "t0" ) AS "t1" - ) AS "t2" - ON "t1"."key" = "t2"."key" + ) AS "t3" + ON "t1"."key" = "t3"."key" ) AS "t5" -) AS "t6" - ON "t5"."key" = "t6"."key" \ No newline at end of file +) AS "t7" + ON "t5"."key" = "t7"."key" \ No newline at end of file diff --git a/ibis/backends/tests/snapshots/test_sql/test_cte_refs_in_topo_order/snowflake/out.sql b/ibis/backends/tests/snapshots/test_sql/test_cte_refs_in_topo_order/snowflake/out.sql index 96acd49caaad..eb9acf0a45fe 100644 --- a/ibis/backends/tests/snapshots/test_sql/test_cte_refs_in_topo_order/snowflake/out.sql +++ b/ibis/backends/tests/snapshots/test_sql/test_cte_refs_in_topo_order/snowflake/out.sql @@ -1,24 +1,20 @@ SELECT "t1"."key" AS "key", "t2"."key" AS "key_right", - "t4"."key_right" AS "key_right_right" + "t5"."key_right" AS "key_right_right" FROM ( SELECT - * + "t0"."key" AS "key" FROM "leaf" AS "t0" WHERE TRUE ) AS "t1" INNER JOIN ( SELECT - "t1"."key" AS "key" - FROM ( - SELECT - * - FROM "leaf" AS "t0" - WHERE - TRUE - ) AS "t1" + "t0"."key" AS "key" + FROM "leaf" AS "t0" + WHERE + TRUE ) AS "t2" ON "t1"."key" = "t2"."key" INNER JOIN ( @@ -27,22 +23,18 @@ INNER JOIN ( "t2"."key" AS "key_right" FROM ( SELECT - * + "t0"."key" AS "key" FROM "leaf" AS "t0" WHERE TRUE ) AS "t1" INNER JOIN ( SELECT - "t1"."key" AS "key" - FROM ( - SELECT - * - FROM "leaf" AS "t0" - WHERE - TRUE - ) AS "t1" + "t0"."key" AS "key" + FROM "leaf" AS "t0" + WHERE + TRUE ) AS "t2" ON "t1"."key" = "t2"."key" -) AS "t4" - ON "t1"."key" = "t1"."key" \ No newline at end of file +) AS "t5" + ON "t1"."key" = "t5"."key" \ No newline at end of file diff --git a/ibis/backends/tests/snapshots/test_sql/test_isin_bug/snowflake/out.sql b/ibis/backends/tests/snapshots/test_sql/test_isin_bug/snowflake/out.sql index b5362bf67adc..92e386ef62a4 100644 --- a/ibis/backends/tests/snapshots/test_sql/test_isin_bug/snowflake/out.sql +++ b/ibis/backends/tests/snapshots/test_sql/test_isin_bug/snowflake/out.sql @@ -1,15 +1,9 @@ SELECT "t0"."x" IN (( SELECT - "t1"."x" AS "x" - FROM ( - SELECT - * - FROM "t" AS "t0" - WHERE - ( - "t0"."x" > 2 - ) - ) AS "t1" + "t0"."x" AS "x" + FROM "t" AS "t0" + WHERE + "t0"."x" > 2 )) AS "InSubquery(x)" FROM "t" AS "t0" \ No newline at end of file