Skip to content

Commit

Permalink
[test](case) add order by clause in unstable case (apache#35118)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 authored and weixingyu12 committed May 24, 2024
1 parent 612d701 commit 8cf166d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
56 changes: 28 additions & 28 deletions regression-test/data/nereids_syntax_p0/window_function.out
Original file line number Diff line number Diff line change
Expand Up @@ -360,34 +360,34 @@
1.5

-- !select_lead --
1
2
1
2
1
2
1
2
1
2
2
1
1
1
\N 2 1 1
\N 3 1 1
1.0 1 1 1
1.0 1 2 2
1.0 2 1 1
1.0 2 2 2
1.0 3 1 1
1.0 3 2 2
2.0 1 1 1
2.0 1 2 2
2.0 2 1 1
2.0 2 2 2
3.0 \N 1 1
3.0 \N 2 2

-- !select_lag --
1
2
1
2
1
2
1
2
1
2
2
1
1
1
\N 2 1 1
\N 3 1 1
1.0 1 1 1
1.0 1 2 2
1.0 2 1 1
1.0 2 2 2
1.0 3 1 1
1.0 3 2 2
2.0 1 1 1
2.0 1 2 2
2.0 2 1 1
2.0 2 2 2
3.0 \N 1 1
3.0 \N 2 2

Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,6 @@ suite("window_function") {
where c6 is not null;
"""

qt_select_lead "SELECT lead(c1, 0, 111) over(partition by c3 order by c2) FROM window_test"
qt_select_lag "SELECT lag(c1, 0, 222) over(partition by c3 order by c2) FROM window_test"
qt_select_lead "SELECT c3,c2,c1,lead(c1, 0, 111) over(partition by c3 order by c2,c1) FROM window_test order by c3;"
qt_select_lag "SELECT c3,c2,c1,lag(c1, 0, 222) over(partition by c3 order by c2,c1) FROM window_test order by c3;"
}

0 comments on commit 8cf166d

Please sign in to comment.