Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 3, 2023
1 parent 86871a8 commit ab0b486
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions datafusion/sqllogictest/test_files/window.slt
Original file line number Diff line number Diff line change
Expand Up @@ -3742,20 +3742,18 @@ DROP TABLE score_board;
query error DataFusion error: Error during planning: RANGE requires exactly one ORDER BY column
select a,
rank() over (partition by a order by a, a + 1 RANGE UNBOUNDED PRECEDING) rnk
from (select 1 a union all select 2 a) q
from (select 1 a) q

query II
select a,
rank() over (partition by a order by a RANGE UNBOUNDED PRECEDING) rnk
from (select 1 a union all select 2 a) q
from (select 1 a) q
----
1 1
2 1

query II
select a,
rank() over (partition by a RANGE UNBOUNDED PRECEDING) rnk
from (select 1 a union all select 2 a) q
from (select 1 a) q
----
1 1
2 1

0 comments on commit ab0b486

Please sign in to comment.