ClickHouse/tests/queries/0_stateless/01428_hash_set_nan_key.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
497 B
MySQL
Raw Normal View History

2020-08-03 00:07:05 +00:00
SELECT uniqExact(nan) FROM numbers(1000);
SELECT uniqExact(number + nan) FROM numbers(1000);
SELECT sumDistinct(number + nan) FROM numbers(1000);
SELECT DISTINCT number + nan FROM numbers(1000);
2020-08-03 00:07:05 +00:00
SELECT topKWeightedMerge(1)(initializeAggregation('topKWeightedState(1)', nan, arrayJoin(range(10))));
select number + nan k from numbers(256) group by k;
2020-08-03 00:07:05 +00:00
SELECT uniqExact(reinterpretAsFloat64(reinterpretAsFixedString(reinterpretAsUInt64(reinterpretAsFixedString(nan)) + number))) FROM numbers(10);