mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
a6fc632aa1
+ update file with broken tests
18 lines
564 B
SQL
18 lines
564 B
SQL
|
|
DROP TABLE IF EXISTS set_index_not;
|
|
|
|
CREATE TABLE 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 set_index_not values ('Jon','alive'),('Ramsey','rip');
|
|
|
|
select * from set_index_not where status!='rip';
|
|
select * from set_index_not where NOT (status ='rip');
|
|
select * from set_index_not where NOT (status!='rip');
|
|
select * from set_index_not where NOT (NOT (status ='rip'));
|
|
|
|
DROP TABLE set_index_not;
|