From 578ecde7a0b3c32874978a302d2ad1ebbee93b40 Mon Sep 17 00:00:00 2001 From: zhangstar333 <2561612514@qq.com> Date: Tue, 21 May 2024 16:01:40 +0800 Subject: [PATCH] update --- .../nereids_syntax_p0/window_function.out | 56 +++++++++---------- .../nereids_syntax_p0/window_function.groovy | 4 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/regression-test/data/nereids_syntax_p0/window_function.out b/regression-test/data/nereids_syntax_p0/window_function.out index 1182b13299b195..000a5b23ce88fc 100644 --- a/regression-test/data/nereids_syntax_p0/window_function.out +++ b/regression-test/data/nereids_syntax_p0/window_function.out @@ -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 diff --git a/regression-test/suites/nereids_syntax_p0/window_function.groovy b/regression-test/suites/nereids_syntax_p0/window_function.groovy index 5832c8a827029b..e235867602175b 100644 --- a/regression-test/suites/nereids_syntax_p0/window_function.groovy +++ b/regression-test/suites/nereids_syntax_p0/window_function.groovy @@ -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" }