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:
Alexander Gololobov 2023-04-05 20:58:20 +02:00 committed by GitHub
commit 0ebfdbdf69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;