From fad9ef3671dd56f7646ed29012f57c37c7008b64 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Wed, 12 Aug 2020 19:00:28 +0300 Subject: [PATCH] Fix the 01428_hash_set_nan_key test not to rely on backwards-incompatible changes in `modulo` made in https://github.com/ClickHouse/ClickHouse/pull/12585 --- tests/queries/0_stateless/01428_hash_set_nan_key.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/queries/0_stateless/01428_hash_set_nan_key.sql b/tests/queries/0_stateless/01428_hash_set_nan_key.sql index f9875f9ed99..837cd56a401 100644 --- a/tests/queries/0_stateless/01428_hash_set_nan_key.sql +++ b/tests/queries/0_stateless/01428_hash_set_nan_key.sql @@ -1,10 +1,10 @@ SELECT uniqExact(nan) FROM numbers(1000); -SELECT uniqExact(number % inf) FROM numbers(1000); -SELECT sumDistinct(number % inf) FROM numbers(1000); -SELECT DISTINCT number % inf FROM numbers(1000); +SELECT uniqExact(number + nan) FROM numbers(1000); +SELECT sumDistinct(number + nan) FROM numbers(1000); +SELECT DISTINCT number + nan FROM numbers(1000); SELECT topKWeightedMerge(1)(initializeAggregation('topKWeightedState(1)', nan, arrayJoin(range(10)))); -select number % inf k from numbers(256) group by k order by k; +select number + nan k from numbers(256) group by k; -SELECT uniqExact(reinterpretAsFloat64(reinterpretAsFixedString(reinterpretAsUInt64(reinterpretAsFixedString(nan)) + number))) n FROM numbers(10) order by n; +SELECT uniqExact(reinterpretAsFloat64(reinterpretAsFixedString(reinterpretAsUInt64(reinterpretAsFixedString(nan)) + number))) FROM numbers(10);