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
{{ message }}
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@ SELECT
3
3
`rowindex`,
4
4
CASE
5
5
WHEN COALESCE(
6
-
SUM(CAST(NOT `bool_col` IS NULLAS INT64)) OVER (
6
+
SUM(CAST(NOT (
7
+
`bool_col`
8
+
) IS NULLAS INT64)) OVER (
7
9
PARTITION BY `bool_col`
8
10
ORDER BY`bool_col`ASC NULLS LAST, `rowindex`ASC NULLS LAST
9
11
ROWS BETWEEN 3 PRECEDING AND CURRENT ROW
@@ -23,7 +25,9 @@ SELECT
23
25
END AS`bool_col_1`,
24
26
CASE
25
27
WHEN COALESCE(
26
-
SUM(CAST(NOT `int64_col` IS NULLAS INT64)) OVER (
28
+
SUM(CAST(NOT (
29
+
`int64_col`
30
+
) IS NULLAS INT64)) OVER (
27
31
PARTITION BY `bool_col`
28
32
ORDER BY`bool_col`ASC NULLS LAST, `rowindex`ASC NULLS LAST
Copy file name to clipboardExpand all lines: tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_skips_nulls_op/out.sql
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@ SELECT
2
2
`rowindex`,
3
3
CASE
4
4
WHEN COALESCE(
5
-
SUM(CAST(NOT `int64_col` IS NULLAS INT64)) OVER (ORDER BY`rowindex`ASC NULLS LAST ROWS BETWEEN 2 PRECEDING AND CURRENT ROW),
5
+
SUM(CAST(NOT (
6
+
`int64_col`
7
+
) IS NULLAS INT64)) OVER (ORDER BY`rowindex`ASC NULLS LAST ROWS BETWEEN 2 PRECEDING AND CURRENT ROW),
Copy file name to clipboardExpand all lines: tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_wo_skips_nulls_op/out.sql
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
SELECT
2
2
`rowindex`,
3
3
CASE
4
-
WHEN COUNT(NOT `int64_col` IS NULL) OVER (ORDER BY`rowindex`ASC NULLS LAST ROWS BETWEEN 4 PRECEDING AND CURRENT ROW) <5
4
+
WHEN COUNT(NOT (
5
+
`int64_col`
6
+
) IS NULL) OVER (ORDER BY`rowindex`ASC NULLS LAST ROWS BETWEEN 4 PRECEDING AND CURRENT ROW) <5
5
7
THEN NULL
6
8
WHEN TRUE
7
9
THEN COUNT(`int64_col`) OVER (ORDER BY`rowindex`ASC NULLS LAST ROWS BETWEEN 4 PRECEDING AND CURRENT ROW)
0 commit comments