mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Merge pull request #48413 from azat/tests/02352_lightweight_delete
Fix possible flakiness of lightweight delete tests (due to index granularity randomization)
This commit is contained in:
commit
0ebfdbdf69
@ -74,7 +74,7 @@ select table, partition, name, rows from system.parts where database = currentDa
|
||||
drop table t_light;
|
||||
|
||||
SELECT '-----Test lightweight delete in multi blocks-----';
|
||||
CREATE TABLE t_large(a UInt32, b int) ENGINE=MergeTree order BY a settings min_bytes_for_wide_part=0;
|
||||
CREATE TABLE t_large(a UInt32, b int) ENGINE=MergeTree order BY a settings min_bytes_for_wide_part=0, index_granularity=8192, index_granularity_bytes='10Mi';
|
||||
INSERT INTO t_large SELECT number + 1, number + 1 FROM numbers(100000);
|
||||
|
||||
DELETE FROM t_large WHERE a = 50000;
|
||||
|
@ -80,7 +80,7 @@ select table, partition, name, rows from system.parts where database = currentDa
|
||||
drop table t_light;
|
||||
|
||||
SELECT '-----Test lightweight delete in multi blocks-----';
|
||||
CREATE TABLE t_large(a UInt32, b int) ENGINE=MergeTree order BY a settings min_bytes_for_wide_part=0;
|
||||
CREATE TABLE t_large(a UInt32, b int) ENGINE=MergeTree order BY a settings min_bytes_for_wide_part=0, index_granularity=8192, index_granularity_bytes='10Mi';
|
||||
INSERT INTO t_large SELECT number + 1, number + 1 FROM numbers(100000);
|
||||
|
||||
DELETE FROM t_large WHERE a = 50000;
|
||||
|
@ -1,6 +1,6 @@
|
||||
DROP TABLE IF EXISTS lwd_test;
|
||||
|
||||
CREATE TABLE lwd_test (id UInt64 , value String) ENGINE MergeTree() ORDER BY id;
|
||||
CREATE TABLE lwd_test (id UInt64 , value String) ENGINE MergeTree() ORDER BY id SETTINGS index_granularity=8192, index_granularity_bytes='10Mi';
|
||||
|
||||
INSERT INTO lwd_test SELECT number, randomString(10) FROM system.numbers LIMIT 1000000;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user