Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed May 22, 2024
1 parent 578ecde commit 0d8a9f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions regression-test/data/nereids_syntax_p0/window_function.out
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@
1.5

-- !select_lead --
\N 2 1 1
\N 3 1 1
1.0 1 1 1
1.0 1 2 2
1.0 2 1 1
Expand All @@ -372,10 +374,10 @@
2.0 2 2 2
3.0 \N 1 1
3.0 \N 2 2
\N 2 1 1
\N 3 1 1

-- !select_lag --
\N 2 1 1
\N 3 1 1
1.0 1 1 1
1.0 1 2 2
1.0 2 1 1
Expand All @@ -388,6 +390,4 @@
2.0 2 2 2
3.0 \N 1 1
3.0 \N 2 2
\N 2 1 1
\N 3 1 1

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 c3,c2,c1,lead(c1, 0, 111) over(partition by c3 order by c2,c1) FROM window_test"
qt_select_lag "SELECT c3,c2,c1,lag(c1, 0, 222) over(partition by c3 order by c2,c1) 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 0d8a9f2

Please sign in to comment.