mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add test for old bug #7826
This commit is contained in:
parent
13c92ade68
commit
cf05bf663c
@ -0,0 +1,12 @@
|
||||
---
|
||||
tab idx bloom_filter
|
||||
---
|
||||
Expression ((Projection + Before ORDER BY))
|
||||
Filter (WHERE)
|
||||
ReadFromMergeTree (default.tab)
|
||||
Indexes:
|
||||
Skip
|
||||
Name: idx
|
||||
Description: bloom_filter GRANULARITY 1
|
||||
Parts: 1/1
|
||||
Granules: 1/1
|
@ -0,0 +1,23 @@
|
||||
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 table = 'tab';
|
||||
|
||||
SELECT '---';
|
||||
|
||||
EXPLAIN indexes = 1 SELECT * FROM tab WHERE has(foo, 'b');
|
||||
|
||||
DROP TABLE tab;
|
Loading…
Reference in New Issue
Block a user