ClickHouse/dbms/tests/queries/0_stateless/01056_negative_with_bloom_filter.sql

15 lines
510 B
MySQL
Raw Normal View History

SET allow_experimental_data_skipping_indices = 1;
DROP TABLE IF EXISTS test;
CREATE TABLE test (`int8` Int8, `int16` Int16, `int32` Int32, `int64` Int64, INDEX idx (`int8`, `int16`, `int32`, `int64`) TYPE bloom_filter(0.01) GRANULARITY 8192 ) ENGINE = MergeTree() ORDER BY `int8`;
INSERT INTO test VALUES (-1, -1, -1, -1);
SELECT * FROM test WHERE `int8` = -1;
SELECT * FROM test WHERE `int16` = -1;
SELECT * FROM test WHERE `int32` = -1;
SELECT * FROM test WHERE `int64` = -1;
DROP TABLE IF EXISTS test;