You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql
+5-31Lines changed: 5 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -12,39 +12,13 @@ WITH `bfcte_0` AS (
12
12
`int64_col`AS`bfcol_8`,
13
13
`bool_col`AS`bfcol_9`
14
14
FROM`bfcte_0`
15
-
), `bfcte_2`AS (
15
+
), `bfcte_3`AS (
16
16
SELECT
17
17
*
18
18
FROM`bfcte_1`
19
19
WHERE
20
20
NOT `bfcol_9` IS NULL
21
-
), `bfcte_3`AS (
22
-
SELECT
23
-
*,
24
-
CASE
25
-
WHEN SUM(CAST(NOT `bfcol_7` IS NULLAS INT64)) OVER (
26
-
PARTITION BY `bfcol_9`
27
-
ORDER BY`bfcol_9`ASC NULLS LAST, `rowindex`ASC NULLS LAST
28
-
ROWS BETWEEN 3 PRECEDING AND CURRENT ROW
29
-
) <3
30
-
THEN NULL
31
-
ELSE COALESCE(
32
-
SUM(CAST(`bfcol_7`AS INT64)) OVER (
33
-
PARTITION BY `bfcol_9`
34
-
ORDER BY`bfcol_9`ASC NULLS LAST, `rowindex`ASC NULLS LAST
0 commit comments