Merge pull request #22219 from den-crane/tests/bug_10489

test for #10489
This commit is contained in:
alexey-milovidov 2021-03-29 05:16:13 +03:00 committed by GitHub
commit cff6586b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,3 @@
100
100
100

View File

@ -0,0 +1,21 @@
DROP TABLE IF EXISTS test_01778;
CREATE TABLE test_01778
(
`key` LowCardinality(FixedString(3)),
`d` date
)
ENGINE = MergeTree(d, key, 8192);
INSERT INTO test_01778 SELECT toString(intDiv(number,8000)), today() FROM numbers(100000);
INSERT INTO test_01778 SELECT toString('xxx'), today() FROM numbers(100);
SELECT count() FROM test_01778 WHERE key = 'xxx';
SELECT count() FROM test_01778 WHERE key = toFixedString('xxx', 3);
SELECT count() FROM test_01778 WHERE toString(key) = 'xxx';
DROP TABLE test_01778;