Skip to content

Commit

Permalink
Window function merge gate fix (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jrose authored Mar 5, 2024
1 parent 1a22e98 commit b021b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integ/test_column_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ def test_specified_window_frame(session):
df1 = session.sql("select 'v' as \" a\"")
assert df1._output[0].name == '" a"'
assert df1.columns[0] == '" a"'
df2 = df1.select(rank().over(Window.order_by('" a"').range_between(1, 2)) - 1)
df2 = df1.select(rank().over(Window.order_by('" a"').rows_between(1, 2)) - 1)
assert (
df2._output[0].name
== df2.columns[0]
== get_metadata_names(session, df2)[0]
== '"(RANK() OVER ( ORDER BY "" A"" ASC NULLS FIRST RANGE BETWEEN 1 FOLLOWING AND 2 FOLLOWING ) - 1 :: INT)"'
== '"(RANK() OVER ( ORDER BY "" A"" ASC NULLS FIRST ROWS BETWEEN 1 FOLLOWING AND 2 FOLLOWING ) - 1 :: INT)"'
)


Expand Down

0 comments on commit b021b7f

Please sign in to comment.