Merge pull request #32421 from ClickHouse/test-16171

Add a test #16171
This commit is contained in:
Mikhail f. Shiryaev 2021-12-10 13:23:29 +01:00 committed by GitHub
commit 6cfb117732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;