This commit is contained in:
Alexey Milovidov 2021-12-09 01:15:35 +03:00
parent 2de543cbfb
commit e52851d0ed
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,2 @@
LowCardinality(String)
LowCardinality(String)

View File

@ -0,0 +1,15 @@
DROP TABLE IF EXISTS errors_local;
CREATE TABLE errors_local (level LowCardinality(String)) ENGINE=ReplacingMergeTree ORDER BY level settings min_bytes_for_wide_part = '10000000';
insert into errors_local select toString(number) from numbers(10000);
SELECT toTypeName(level) FROM errors_local FINAL PREWHERE isNotNull(level) WHERE isNotNull(level) LIMIT 1;
DROP TABLE errors_local;
CREATE TABLE errors_local(level LowCardinality(String)) ENGINE=ReplacingMergeTree ORDER BY level;
insert into errors_local select toString(number) from numbers(10000);
SELECT toTypeName(level) FROM errors_local FINAL PREWHERE isNotNull(level) WHERE isNotNull(level) LIMIT 1;
DROP TABLE errors_local;