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
This commit is contained in:
Alexander Kuzmenkov 2020-08-12 19:00:28 +03:00
parent e6420c82ca
commit fad9ef3671

View File

@ -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);