Update 01641_memory_tracking_insert_optimize_long.sql

This commit is contained in:
alexey-milovidov 2021-04-25 11:05:59 +03:00 committed by GitHub
parent 301d75dcbe
commit e20a6e0f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,8 @@ drop table if exists data_01641;
create table data_01641 (key Int, value String) engine=MergeTree order by (key, repeat(value, 10)) settings old_parts_lifetime=0, min_bytes_for_wide_part=0;
insert into data_01641 select number, toString(number) from numbers(120e6);
SET max_block_size = 1000, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
insert into data_01641 select number, toString(number) from numbers(120000);
-- Definitely should fail and it proves that memory is tracked in OPTIMIZE query.
set max_memory_usage='10Mi';