From a7c2af0dc973049caa79897b4183dc48b4e34d05 Mon Sep 17 00:00:00 2001 From: zhangstar333 <2561612514@qq.com> Date: Thu, 28 Sep 2023 17:19:38 +0800 Subject: [PATCH] add order by --- .../partition_sort_node/test_partiiton_sort.out | 8 ++++---- .../partition_sort_node/test_partiiton_sort.groovy | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/regression-test/data/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.out b/regression-test/data/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.out index d3b43d68940f13..9beba7f0bdfdb9 100644 --- a/regression-test/data/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.out +++ b/regression-test/data/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.out @@ -10,15 +10,15 @@ aquamarine blue seashell 14 -- !select3 -- aquamarine blue peru 11 -lace blue spring 11 indian coral smoke 11 +lace blue spring 11 -- !select4 -- aquamarine blue peru 10 beige blanched thistle 10 -indian coral seashell 10 -bisque orange violet 10 -lace blue midnight 10 beige forest white 10 +bisque orange violet 10 blush frosted thistle 10 +indian coral seashell 10 +lace blue midnight 10 diff --git a/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy b/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy index 236b01643da879..d9f6776b3ace9b 100644 --- a/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy +++ b/regression-test/suites/ssb_unique_sql_zstd_p0/partition_sort_node/test_partiiton_sort.groovy @@ -23,11 +23,11 @@ suite("test_partition_sort") { dense_rank() over(partition by p_name order by p_color) as dr from part) as t; """ qt_select2 """ select * from ( - select p_name, p_color , row_number() over(partition by p_name order by p_color) as rn from part) as t where rn=14; """ + select p_name, p_color , row_number() over(partition by p_name order by p_color) as rn from part) as t where rn=14 order by 1,2,3; """ - qt_select3 """ select * from ( select p_name, p_color , rank() over(partition by p_name order by p_color) as rn from part) as t where rn=11; """ + qt_select3 """ select * from ( select p_name, p_color , rank() over(partition by p_name order by p_color) as rn from part) as t where rn=11 order by 1,2,3; """ - qt_select4 """ select * from ( select p_name, p_color , dense_rank() over(partition by p_name order by p_color) as rn from part) as t where rn=10; """ + qt_select4 """ select * from ( select p_name, p_color , dense_rank() over(partition by p_name order by p_color) as rn from part) as t where rn=10 order by 1,2,3; """