ClickHouse/tests/queries/0_stateless/02713_array_low_cardinality_string.sql
2023-11-06 15:45:15 +01:00

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;