From 90f3c9ccd11506580dad65493252e9b1bf31cba9 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 10 Apr 2021 09:53:22 +0300 Subject: [PATCH] Cover inactive_parts_to_throw_insert=0 and inactive_parts_to_delay_insert>0 --- ...09_inactive_parts_to_delay_throw_insert.reference | 0 .../01809_inactive_parts_to_delay_throw_insert.sql | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.reference create mode 100644 tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.sql diff --git a/tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.reference b/tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.sql b/tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.sql new file mode 100644 index 00000000000..e9bbfe69421 --- /dev/null +++ b/tests/queries/0_stateless/01809_inactive_parts_to_delay_throw_insert.sql @@ -0,0 +1,12 @@ +drop table if exists data_01809; + +create table data_01809 (i int) engine MergeTree order by i settings old_parts_lifetime = 10000000000, min_bytes_for_wide_part = 0, inactive_parts_to_throw_insert = 0, inactive_parts_to_delay_insert = 1; + +insert into data_01809 values (1); +insert into data_01809 values (2); + +optimize table data_01809 final; + +insert into data_01809 values (3); + +drop table data_01809;