mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
add test
This commit is contained in:
parent
d5f26cece5
commit
6c1312ea0e
4
tests/queries/0_stateless/02867_null_lc_in_bug.reference
Normal file
4
tests/queries/0_stateless/02867_null_lc_in_bug.reference
Normal file
@ -0,0 +1,4 @@
|
||||
pure nullable result:
|
||||
qwe
|
||||
wrapping in LC:
|
||||
qwe
|
17
tests/queries/0_stateless/02867_null_lc_in_bug.sql
Normal file
17
tests/queries/0_stateless/02867_null_lc_in_bug.sql
Normal file
@ -0,0 +1,17 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/50570
|
||||
|
||||
DROP TABLE IF EXISTS tnul SYNC;
|
||||
DROP TABLE IF EXISTS tlc SYNC;
|
||||
|
||||
CREATE TABLE tnul (lc Nullable(String)) ENGINE = MergeTree ORDER BY tuple();
|
||||
INSERT INTO tnul VALUES (NULL), ('qwe');
|
||||
SELECT 'pure nullable result:';
|
||||
SELECT lc FROM tnul WHERE notIn(lc, ('rty', 'uiop'));
|
||||
DROP TABLE tnul SYNC;
|
||||
|
||||
|
||||
CREATE TABLE tlc (lc LowCardinality(Nullable(String))) ENGINE = MergeTree ORDER BY tuple();
|
||||
INSERT INTO tlc VALUES (NULL), ('qwe');
|
||||
SELECT 'wrapping in LC:';
|
||||
SELECT lc FROM tlc WHERE notIn(lc, ('rty', 'uiop'));
|
||||
DROP TABLE tlc SYNC;
|
Loading…
Reference in New Issue
Block a user