Skip to content

Commit ce41321

Browse files
committed
fix window errors
1 parent f50ad6d commit ce41321

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bigframes/core/compile/sqlglot/aggregations/unary_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _(
121121
case_expr = _cut_ops_w_int_bins(op, column, op.bins, window)
122122
else: # Interpret as intervals
123123
case_expr = _cut_ops_w_intervals(op, column, op.bins, window)
124-
return apply_window_if_present(case_expr, window)
124+
return case_expr
125125

126126

127127
def _cut_ops_w_int_bins(

tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_cut/int_bins.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ WITH `bfcte_0` AS (
4747
3 * IEEE_DIVIDE(MAX(`int64_col`) OVER () - MIN(`int64_col`) OVER (), 3)
4848
) + 0 AS `right_inclusive`
4949
)
50-
END OVER () AS `bfcol_1`
50+
END AS `bfcol_1`
5151
FROM `bfcte_0`
5252
)
5353
SELECT

tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_cut/int_bins_labels.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ WITH `bfcte_0` AS (
1616
THEN 'b'
1717
WHEN `int64_col` IS NOT NULL
1818
THEN 'c'
19-
END OVER () AS `bfcol_1`
19+
END AS `bfcol_1`
2020
FROM `bfcte_0`
2121
)
2222
SELECT

tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_cut/interval_bins.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WITH `bfcte_0` AS (
1010
THEN STRUCT(0 AS `left_exclusive`, 1 AS `right_inclusive`)
1111
WHEN `int64_col` > 1 AND `int64_col` <= 2
1212
THEN STRUCT(1 AS `left_exclusive`, 2 AS `right_inclusive`)
13-
END OVER () AS `bfcol_1`
13+
END AS `bfcol_1`
1414
FROM `bfcte_0`
1515
)
1616
SELECT

tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_cut/interval_bins_labels.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WITH `bfcte_0` AS (
1010
THEN 0
1111
WHEN `int64_col` > 1 AND `int64_col` <= 2
1212
THEN 1
13-
END OVER () AS `bfcol_1`
13+
END AS `bfcol_1`
1414
FROM `bfcte_0`
1515
)
1616
SELECT

0 commit comments

Comments
 (0)