From 52051b4334c673413f6fb08c6c04a7986d618837 Mon Sep 17 00:00:00 2001 From: zhangstar333 <2561612514@qq.com> Date: Mon, 22 Apr 2024 11:47:23 +0800 Subject: [PATCH] [test](hll) fix unstable case without order by clause --- .../query_p0/sql_functions/hll_functions/test_hll_functions.out | 2 +- .../sql_functions/hll_functions/test_hll_functions.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-test/data/query_p0/sql_functions/hll_functions/test_hll_functions.out b/regression-test/data/query_p0/sql_functions/hll_functions/test_hll_functions.out index c9cebac5079798..e90125657461b6 100644 --- a/regression-test/data/query_p0/sql_functions/hll_functions/test_hll_functions.out +++ b/regression-test/data/query_p0/sql_functions/hll_functions/test_hll_functions.out @@ -10,7 +10,7 @@ shanghai 2 shanxi 1 -- !table_select -- -1 +0 -- !const_select -- 1 diff --git a/regression-test/suites/query_p0/sql_functions/hll_functions/test_hll_functions.groovy b/regression-test/suites/query_p0/sql_functions/hll_functions/test_hll_functions.groovy index 87a5f5360d0e2a..43afed6f52a7ac 100644 --- a/regression-test/suites/query_p0/sql_functions/hll_functions/test_hll_functions.groovy +++ b/regression-test/suites/query_p0/sql_functions/hll_functions/test_hll_functions.groovy @@ -60,7 +60,7 @@ suite("test_hll_functions") { qt_table_select "select hll_union_agg(hll_from_base64(hll_to_base64(pv))) from test_hll_func;" qt_table_select "select province, hll_union_agg(hll_from_base64(hll_to_base64(pv))) from test_hll_func group by province order by province;" - qt_table_select "select hll_cardinality(hll_from_base64(hll_to_base64(pv))) from test_hll_func limit 1;" + qt_table_select "select hll_cardinality(hll_from_base64(hll_to_base64(pv))) as res from test_hll_func order by res limit 1;" qt_const_select "select hll_cardinality(hll_from_base64(hll_to_base64(hll_hash('abc'))));" qt_const_select "select hll_cardinality(hll_from_base64(hll_to_base64(hll_hash(''))));"