Skip to content

Commit

Permalink
refactor(rewrites): clarify sequence elements
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jun 24, 2024
1 parent 12eeeed commit e34476b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ibis/expr/rewrites.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ def window_merge_frames(_, window):
for sort_key in window.orderings + _.order_by:
order_keys[sort_key.expr] = sort_key.ascending, sort_key.nulls_first

order_by = (ops.SortKey(k, *v) for k, v in order_keys.items())
order_by = (
ops.SortKey(expr, ascending=ascending, nulls_first=nulls_first)
for expr, (ascending, nulls_first) in order_keys.items()
)
return _.copy(start=start, end=end, group_by=group_by, order_by=order_by)


Expand Down

0 comments on commit e34476b

Please sign in to comment.