mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #29460 from den-crane/test/issue_23634
test for #23634 added tests for tuples
This commit is contained in:
commit
8eaff1a02d
@ -1,3 +1,16 @@
|
||||
---Q1---
|
||||
s s s
|
||||
---Q2---
|
||||
s s s
|
||||
---Q3---
|
||||
s s s
|
||||
---Q4---
|
||||
s s s
|
||||
\N s1 s1
|
||||
\N \N s2
|
||||
---Q5---
|
||||
---Q6---
|
||||
---Q7---
|
||||
---Q8---
|
||||
s s s
|
||||
---Q9---
|
||||
|
@ -7,10 +7,34 @@ 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 '---Q1---';
|
||||
select * from test_23634 where id !='';
|
||||
|
||||
select '---Q2---';
|
||||
select * from test_23634 where id !='' and s != '';
|
||||
|
||||
select '---Q3---';
|
||||
select * from test_23634 where id !='' and s != '' and s1 != '';
|
||||
|
||||
set force_primary_key=0;
|
||||
|
||||
select '---Q4---';
|
||||
select * from test_23634 where (id, s, s1) != ('', '', '') order by id, s1, s1;
|
||||
|
||||
select '---Q5---';
|
||||
select * from test_23634 where (id, s, s1) = ('', '', '') order by id, s1, s1;
|
||||
|
||||
select '---Q6---';
|
||||
select * from test_23634 where (id, s, s1) = ('', '', 's2') order by id, s1, s1;
|
||||
|
||||
select '---Q7---';
|
||||
select * from test_23634 where (id, s, s1) = ('', 's1', 's1') order by id, s1, s1;
|
||||
|
||||
select '---Q8---';
|
||||
select * from test_23634 where (id, s, s1) = ('s', 's', 's') order by id, s1, s1;
|
||||
|
||||
select '---Q9---';
|
||||
select * from test_23634 where (id, s, s1) = (null::Nullable(String), null::Nullable(String), null::Nullable(String)) order by id, s1, s1;
|
||||
|
||||
drop table test_23634;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user