Skip to content

Commit 4f3c920

Browse files
committed
exclude_framing_clause
1 parent 149ebc9 commit 4f3c920

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,14 @@ def _(
267267
return column.expr
268268
if op.periods > 0:
269269
return apply_window_if_present(
270-
sge.func("LAG", column.expr, sge.convert(op.periods)), window
270+
sge.func("LAG", column.expr, sge.convert(op.periods)),
271+
window,
272+
include_framing_clauses=False,
271273
)
272274
return apply_window_if_present(
273-
sge.func("LEAD", column.expr, sge.convert(-op.periods)), window
275+
sge.func("LEAD", column.expr, sge.convert(-op.periods)),
276+
window,
277+
include_framing_clauses=False,
274278
)
275279

276280

0 commit comments

Comments
 (0)