mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
24 lines
439 B
SQL
24 lines
439 B
SQL
DROP TABLE IF EXISTS tab;
|
|
|
|
CREATE TABLE tab
|
|
(
|
|
foo Array(LowCardinality(String)),
|
|
INDEX idx foo TYPE bloom_filter
|
|
)
|
|
ENGINE = MergeTree
|
|
PRIMARY KEY tuple();
|
|
|
|
INSERT INTO tab VALUES (['a', 'b']);
|
|
|
|
SELECT '---';
|
|
|
|
SELECT table, name, type
|
|
FROM system.data_skipping_indices
|
|
WHERE database = currentDatabase() AND table = 'tab';
|
|
|
|
SELECT '---';
|
|
|
|
EXPLAIN indexes = 1, description = 0 SELECT * FROM tab WHERE has(foo, 'b');
|
|
|
|
DROP TABLE tab;
|