Skip to content

Commit a9eaf47

Browse files
committed
Window frame required calling inner value
1 parent 31ddaba commit a9eaf47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/datafusion/expr.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def window_frame(self, window_frame: WindowFrame) -> ExprFuncBuilder:
463463
set parameters for either window or aggregate functions. If used on any other
464464
type of expression, an error will be generated when ``build()`` is called.
465465
"""
466-
return ExprFuncBuilder(self.expr.window_frame(window_frame))
466+
return ExprFuncBuilder(self.expr.window_frame(window_frame.window_frame))
467467

468468

469469
class ExprFuncBuilder:
@@ -498,7 +498,7 @@ def partition_by(self, *partition_by: Expr) -> ExprFuncBuilder:
498498

499499
def window_frame(self, window_frame: WindowFrame) -> ExprFuncBuilder:
500500
"""Set window frame for window functions."""
501-
return ExprFuncBuilder(self.builder.window_frame(window_frame))
501+
return ExprFuncBuilder(self.builder.window_frame(window_frame.window_frame))
502502

503503
def build(self) -> Expr:
504504
"""Create an expression from a Function Builder."""

0 commit comments

Comments
 (0)