From cf7812cfee1990598ed23d24ebc88568ece9b982 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Wed, 22 May 2024 11:52:33 +0800 Subject: [PATCH] [fix](test) let test_sys_rowsets compatible with three replicas --- .../suites/query_p0/system/test_query_sys_rowsets.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regression-test/suites/query_p0/system/test_query_sys_rowsets.groovy b/regression-test/suites/query_p0/system/test_query_sys_rowsets.groovy index cd4906e60f4659..540a6a0894171d 100644 --- a/regression-test/suites/query_p0/system/test_query_sys_rowsets.groovy +++ b/regression-test/suites/query_p0/system/test_query_sys_rowsets.groovy @@ -45,12 +45,12 @@ suite("test_query_sys_rowsets", "query,p0") { def now = sdf.format(new Date()).toString(); List> rowsets_table_name_tablets = sql """ show tablets from ${rowsets_table_name} """ - order_qt_rowsets1 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} order by START_VERSION,END_VERSION; """ + order_qt_rowsets1 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """ sql """ insert into ${rowsets_table_name} values (1,0,"abc"); """ - order_qt_rowsets2 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} order by START_VERSION,END_VERSION; """ + order_qt_rowsets2 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """ sql """ insert into ${rowsets_table_name} values (2,1,"hello world"); """ sql """ insert into ${rowsets_table_name} values (3,0,"dssadasdsafafdf"); """ - order_qt_rowsets3 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} order by START_VERSION,END_VERSION; """ + order_qt_rowsets3 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """ sql """ insert into ${rowsets_table_name} values (4,0,"abcd"); """ - order_qt_rowsets4 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} and NEWEST_WRITE_TIMESTAMP>='${now}' order by START_VERSION,END_VERSION; """ + order_qt_rowsets4 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} and NEWEST_WRITE_TIMESTAMP>='${now}' group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """ } \ No newline at end of file