Skip to content

Commit

Permalink
test(snowflake): regen sql snapshot for cte fix (#8593)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Mar 8, 2024
1 parent 182b6a5 commit f68524c
Showing 1 changed file with 23 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,32 @@
WITH "t6" AS (
WITH "t1" AS (
SELECT
"t5"."street",
ROW_NUMBER() OVER (ORDER BY "t5"."street" ASC) - 1 AS "key"
"t0"."street",
ROW_NUMBER() OVER (ORDER BY "t0"."street" ASC) - 1 AS "key"
FROM "data" AS "t0"
), "t7" AS (
SELECT
"t6"."street",
ROW_NUMBER() OVER (ORDER BY "t6"."street" ASC) - 1 AS "key"
FROM (
SELECT
"t2"."street",
"t2"."key"
FROM (
SELECT
"t0"."street",
ROW_NUMBER() OVER (ORDER BY "t0"."street" ASC) - 1 AS "key"
FROM "data" AS "t0"
) AS "t2"
"t3"."street",
"t3"."key"
FROM "t1" AS "t3"
INNER JOIN (
SELECT
"t1"."key"
FROM (
SELECT
"t0"."street",
ROW_NUMBER() OVER (ORDER BY "t0"."street" ASC) - 1 AS "key"
FROM "data" AS "t0"
) AS "t1"
) AS "t4"
ON "t2"."key" = "t4"."key"
) AS "t5"
), "t1" AS (
SELECT
"t0"."street",
ROW_NUMBER() OVER (ORDER BY "t0"."street" ASC) - 1 AS "key"
FROM "data" AS "t0"
"t2"."key"
FROM "t1" AS "t2"
) AS "t5"
ON "t3"."key" = "t5"."key"
) AS "t6"
)
SELECT
"t8"."street",
"t8"."key"
FROM "t6" AS "t8"
"t9"."street",
"t9"."key"
FROM "t7" AS "t9"
INNER JOIN (
SELECT
"t7"."key"
FROM "t6" AS "t7"
) AS "t10"
ON "t8"."key" = "t10"."key"
"t8"."key"
FROM "t7" AS "t8"
) AS "t11"
ON "t9"."key" = "t11"."key"

0 comments on commit f68524c

Please sign in to comment.