Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed May 21, 2024
1 parent 1a4df39 commit 578ecde
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
1
2
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
\N 2 1 1
\N 3 1 1

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

0 comments on commit 578ecde

Please sign in to comment.