Skip to content

Commit 652615f

Browse files
committed
fix: Use reverted partition_by, _sort
1 parent 211673b commit 652615f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

narwhals/_spark_like/expr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,9 @@ def _clip_both(expr: Column, lower_bound: Column, upper_bound: Column) -> Column
539539
def first(self) -> Self:
540540
def fn(inputs: SparkWindowInputs) -> Column:
541541
return self._F.first(inputs.expr, ignorenulls=False).over(
542-
self.partition_by(inputs).orderBy(*self._sort(inputs))
542+
self.partition_by(*inputs.partition_by).orderBy(
543+
*self._sort(*inputs.order_by)
544+
)
543545
)
544546

545547
return self._with_window_function(fn)

0 commit comments

Comments
 (0)