mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
add test for fixed bug
This commit is contained in:
parent
26637bd7ee
commit
820e0cf877
@ -0,0 +1 @@
|
||||
396
|
18
tests/queries/0_stateless/01605_skip_idx_compact_parts.sql
Normal file
18
tests/queries/0_stateless/01605_skip_idx_compact_parts.sql
Normal file
@ -0,0 +1,18 @@
|
||||
DROP TABLE IF EXISTS skip_idx_comp_parts;
|
||||
CREATE TABLE skip_idx_comp_parts (a Int, b Int, index b_idx b TYPE minmax GRANULARITY 4)
|
||||
ENGINE = MergeTree ORDER BY a
|
||||
SETTINGS index_granularity=256, merge_max_block_size=100;
|
||||
|
||||
SYSTEM STOP MERGES;
|
||||
|
||||
INSERT INTO skip_idx_comp_parts SELECT number, number FROM numbers(200);
|
||||
INSERT INTO skip_idx_comp_parts SELECT number, number FROM numbers(200);
|
||||
INSERT INTO skip_idx_comp_parts SELECT number, number FROM numbers(200);
|
||||
INSERT INTO skip_idx_comp_parts SELECT number, number FROM numbers(200);
|
||||
|
||||
SYSTEM START MERGES;
|
||||
OPTIMIZE TABLE skip_idx_comp_parts FINAL;
|
||||
|
||||
SELECT count() FROM skip_idx_comp_parts WHERE b > 100;
|
||||
|
||||
DROP TABLE skip_idx_comp_parts;
|
Loading…
Reference in New Issue
Block a user