mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-20 07:21:02 +00:00
8 lines
396 B
MySQL
8 lines
396 B
MySQL
|
drop table if exists test.low_null_float;
|
||
|
CREATE TABLE test.low_null_float (a LowCardinality(Nullable(Float64))) ENGINE = MergeTree order by tuple();
|
||
|
INSERT INTO test.low_null_float (a) SELECT if(number % 3 == 0, Null, number) FROM system.numbers LIMIT 1000000;
|
||
|
|
||
|
SELECT a, count() FROM test.low_null_float GROUP BY a ORDER BY count() desc, a LIMIT 10;
|
||
|
drop table if exists test.low_null_float;
|
||
|
|