Merge pull request #53246 from ClickHouse/fix-02428_delete_with_settings

Fix test `02428_delete_with_settings`
This commit is contained in:
Alexey Milovidov 2023-08-12 03:04:18 +03:00 committed by GitHub
commit ede2dc5deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,9 @@ create temporary table known_short_messages (s String) as select * from (select
'Database {} does not exist', 'Dictionary ({}) not found', 'Unknown table function {}',
'Unknown format {}', 'Unknown explain kind ''{}''', 'Unknown setting {}', 'Unknown input format {}',
'Unknown identifier: ''{}''', 'User name is empty', 'Expected function, got: {}',
'Attempt to read after eof', 'String size is too big ({}), maximum: {}', 'API mode: {}'
'Attempt to read after eof', 'String size is too big ({}), maximum: {}', 'API mode: {}',
'Processed: {}%', 'Creating {}: {}', 'Table {}.{} doesn''t exist', 'Invalid cache key hex: {}',
'User has been dropped', 'Illegal type {} of argument of function {}. Should be DateTime or DateTime64'
] as arr) array join arr;
-- Check that we don't have too many short meaningless message patterns.

View File

@ -1,5 +1,5 @@
drop table if exists test;
create table test (id Int32, key String) engine=MergeTree() order by tuple();
create table test (id Int32, key String) engine=MergeTree() order by tuple() settings index_granularity = 8192, index_granularity_bytes = '10Mi';
insert into test select number, toString(number) from numbers(1000000);
delete from test where id % 2 = 0 SETTINGS mutations_sync=0;
select count() from test;