From 15fdf80dc82b65829fc28da424064616652aa69f Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 25 Feb 2020 15:28:06 +0300 Subject: [PATCH] Added test with max_execution_time. --- .../queries/0_stateless/01039_mergetree_exec_time.reference | 0 dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/01039_mergetree_exec_time.reference create mode 100644 dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql diff --git a/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.reference b/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql b/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql new file mode 100644 index 00000000000..4cefb2e9305 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql @@ -0,0 +1,5 @@ +DROP TABLE IF EXISTS tab; +create table tab (A Int64) Engine=MergeTree order by tuple(); +insert into tab select cityHash64(number) from numbers(1000); +select sum(sleep(0.1)) from tab settings max_block_size = 1, max_execution_time=1; -- { serverError 159 } +DROP TABLE IF EXISTS tab;