mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #29392 from den-crane/test/issue_23634
test for #23634 ( nullable PK and negate cond )
This commit is contained in:
commit
2902f52e1b
@ -0,0 +1,3 @@
|
||||
s s s
|
||||
s s s
|
||||
s s s
|
@ -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;
|
Loading…
Reference in New Issue
Block a user