ClickHouse/tests/queries/0_stateless/02713_array_low_cardinality_string.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
422 B
MySQL
Raw Normal View History

2023-04-12 12:02:16 +00:00
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
2023-04-12 23:02:20 +00:00
WHERE database = currentDatabase() AND table = 'tab';
2023-04-12 12:02:16 +00:00
SELECT '---';
EXPLAIN indexes = 1 SELECT * FROM tab WHERE has(foo, 'b');
DROP TABLE tab;