From b021b7f6f58c8543217cc11c9db767dac6ee4592 Mon Sep 17 00:00:00 2001 From: Jamison Rose Date: Tue, 5 Mar 2024 13:42:26 -0800 Subject: [PATCH] Window function merge gate fix (#1285) --- tests/integ/test_column_names.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integ/test_column_names.py b/tests/integ/test_column_names.py index 4d3bdead871..8fa6f4c161d 100644 --- a/tests/integ/test_column_names.py +++ b/tests/integ/test_column_names.py @@ -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)"' )