mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix test
This commit is contained in:
parent
7aacbbdc5a
commit
b242c6ec79
@ -1,12 +1,16 @@
|
||||
SET allow_experimental_data_skipping_indices = 1;
|
||||
|
||||
CREATE TABLE a
|
||||
DROP TABLE IF EXISTS test.set_index_not;
|
||||
|
||||
CREATE TABLE test.set_index_not
|
||||
( name String, status Enum8('alive' = 0, 'rip' = 1),
|
||||
INDEX idx_status status TYPE set(2) GRANULARITY 1
|
||||
)
|
||||
ENGINE = MergeTree() ORDER BY name SETTINGS index_granularity = 8192;
|
||||
|
||||
insert into a values ('Jon','alive'),('Ramsey','rip');
|
||||
insert into test.set_index_not values ('Jon','alive'),('Ramsey','rip');
|
||||
|
||||
select * from a where status!='rip';
|
||||
select * from a where NOT (status ='rip');
|
||||
select * from test.set_index_not where status!='rip';
|
||||
select * from test.set_index_not where NOT (status ='rip');
|
||||
|
||||
DROP TABLE test.set_index_not;
|
Loading…
Reference in New Issue
Block a user