From dfa6caa4da66c6e3de5b3ad4228926a7c0b4ee04 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 17 Aug 2020 00:30:50 +0300 Subject: [PATCH] Fix 01356_initialize_aggregation in unbundled build (change topKWeighted order) --- tests/queries/0_stateless/01356_initialize_aggregation.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/01356_initialize_aggregation.sql b/tests/queries/0_stateless/01356_initialize_aggregation.sql index 07a5ca1892b..02096848120 100644 --- a/tests/queries/0_stateless/01356_initialize_aggregation.sql +++ b/tests/queries/0_stateless/01356_initialize_aggregation.sql @@ -1,4 +1,5 @@ SELECT uniqMerge(state) FROM (SELECT initializeAggregation('uniqState', number % 3) AS state FROM system.numbers LIMIT 10000); SELECT topKWeightedMerge(10)(state) FROM (SELECT initializeAggregation('topKWeightedState(10)', number, number) AS state FROM system.numbers LIMIT 1000); SELECT topKWeightedMerge(10)(state) FROM (SELECT initializeAggregation('topKWeightedState(10)', 1, number) AS state FROM system.numbers LIMIT 1000); -SELECT topKWeightedMerge(10)(state) FROM (SELECT initializeAggregation('topKWeightedState(10)', number, 1) AS state FROM system.numbers LIMIT 1000); +-- order in libstdc++ and libc++ may be a little different, that's why we need arraySort() +SELECT arraySort(topKWeightedMerge(10)(state)) FROM (SELECT initializeAggregation('topKWeightedState(10)', number, 1) AS state FROM system.numbers LIMIT 1000);