2019-05-29 16:37:55 +00:00
|
|
|
set allow_suspicious_low_cardinality_types = 1;
|
2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS test_low_null_float;
|
|
|
|
DROP TABLE IF EXISTS dist_00717;
|
2018-11-21 18:39:24 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
CREATE TABLE test_low_null_float (a LowCardinality(Nullable(Float64))) ENGINE = Memory;
|
|
|
|
CREATE TABLE dist_00717 (a LowCardinality(Nullable(Float64))) ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), 'test_low_null_float', rand());
|
2018-11-21 18:39:24 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
INSERT INTO dist_00717 (a) SELECT number FROM system.numbers LIMIT 1000000;
|
|
|
|
SELECT a, count() FROM dist_00717 GROUP BY a ORDER BY a ASC, count() ASC LIMIT 10;
|
2018-11-21 18:39:24 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS test_low_null_float;
|
|
|
|
DROP TABLE IF EXISTS dist_00717;
|