From 9c805fd6150e18f7a58a96acae63111ac24ef0dc Mon Sep 17 00:00:00 2001 From: jacktengg <18241664+jacktengg@users.noreply.github.com> Date: Sat, 11 May 2024 23:24:20 +0800 Subject: [PATCH] fix --- .../sql_functions/window_functions/test_window_fn.groovy | 2 +- .../sql_functions/window_functions/test_window_fn.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-test/suites/nereids_p0/sql_functions/window_functions/test_window_fn.groovy b/regression-test/suites/nereids_p0/sql_functions/window_functions/test_window_fn.groovy index 510265c3fac2fa8..6b3b5328b162171 100644 --- a/regression-test/suites/nereids_p0/sql_functions/window_functions/test_window_fn.groovy +++ b/regression-test/suites/nereids_p0/sql_functions/window_functions/test_window_fn.groovy @@ -297,7 +297,7 @@ suite("test_window_fn") { // lead qt_sql_lead_1 """ - SELECT lead(ten, 1, 0) OVER (PARTITION BY four ORDER BY ten), ten, four FROM ${tbName2} WHERE unique2 < 10 order by four, ten; + SELECT lead(ten, 1, 0) OVER (PARTITION BY four ORDER BY ten), ten, four FROM ${tbName2} WHERE unique2 < 10 order by four, ten, 1; """ qt_sql_lead_2 """ SELECT lead(ten * 2, 1, 0) OVER (PARTITION BY four ORDER BY ten), ten, four FROM ${tbName2} WHERE unique2 < 10 order by four, ten, 1; diff --git a/regression-test/suites/query_p0/sql_functions/window_functions/test_window_fn.groovy b/regression-test/suites/query_p0/sql_functions/window_functions/test_window_fn.groovy index 739cf0d4cacae27..a84989f5b2ecd43 100644 --- a/regression-test/suites/query_p0/sql_functions/window_functions/test_window_fn.groovy +++ b/regression-test/suites/query_p0/sql_functions/window_functions/test_window_fn.groovy @@ -297,7 +297,7 @@ suite("test_window_fn") { // lead qt_sql_lead_1 """ - SELECT lead(ten, 1, 0) OVER (PARTITION BY four ORDER BY ten), ten, four FROM ${tbName2} WHERE unique2 < 10 order by four, ten; + SELECT lead(ten, 1, 0) OVER (PARTITION BY four ORDER BY ten), ten, four FROM ${tbName2} WHERE unique2 < 10 order by four, ten, 1; """ qt_sql_lead_2 """ SELECT lead(ten * 2, 1, 0) OVER (PARTITION BY four ORDER BY ten), ten, four FROM ${tbName2} WHERE unique2 < 10 order by four, ten, 1;