Merge pull request #29392 from den-crane/test/issue_23634

test for #23634 ( nullable PK and negate cond )
This commit is contained in:
alexey-milovidov 2021-09-27 22:20:42 +03:00 committed by GitHub
commit 2902f52e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,3 @@
s s s
s s s
s s s

View File

@ -0,0 +1,16 @@
drop table if exists test_23634;
set force_primary_key=1;
CREATE TABLE test_23634 (id Nullable(String), s Nullable(String), s1 Nullable(String))
ENGINE = MergeTree() ORDER BY (id,s) SETTINGS allow_nullable_key = 1;
INSERT into test_23634 values ('s','s','s'), (null,'s1','s1'), (null,null,'s2'), (null,null,null);
select * from test_23634 where id !='';
select * from test_23634 where id !='' and s != '';
select * from test_23634 where id !='' and s != '' and s1 != '';
drop table test_23634;