ClickHouse/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql

6 lines
265 B
MySQL
Raw Normal View History

drop table if exists test.lc;
create table test.lc (val LowCardinality(UInt64)) engine = MergeTree order by val;
insert into test.lc select number % 123 from system.numbers limit 100000;
select distinct(val) from test.lc order by val;
drop table if exists test.lc;