From 20c9c2d3ec5f9bb8386655414bc50259d9c1b011 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 17 May 2020 09:52:33 +0300 Subject: [PATCH] Better test --- .../0_stateless/01133_max_result_rows.reference | 13 +++++++++++++ tests/queries/0_stateless/01133_max_result_rows.sql | 9 +++++++++ 2 files changed, 22 insertions(+) diff --git a/tests/queries/0_stateless/01133_max_result_rows.reference b/tests/queries/0_stateless/01133_max_result_rows.reference index 230bb9b4ca2..7134ee81514 100644 --- a/tests/queries/0_stateless/01133_max_result_rows.reference +++ b/tests/queries/0_stateless/01133_max_result_rows.reference @@ -158,3 +158,16 @@ 18 19 20 +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +100 +100 +200 diff --git a/tests/queries/0_stateless/01133_max_result_rows.sql b/tests/queries/0_stateless/01133_max_result_rows.sql index fe86a5902cf..db359959aed 100644 --- a/tests/queries/0_stateless/01133_max_result_rows.sql +++ b/tests/queries/0_stateless/01133_max_result_rows.sql @@ -13,3 +13,12 @@ SELECT DISTINCT intDiv(number, 10) FROM numbers(300); SELECT DISTINCT intDiv(number, 10) FROM numbers(190); SELECT DISTINCT intDiv(number, 10) FROM numbers(200); SELECT DISTINCT intDiv(number, 10) FROM numbers(210); + +SET max_block_size = 10; +SET max_result_rows = 1; +SELECT number FROM system.numbers; +SELECT count() FROM numbers(100); +-- subquery result is not the total result +SELECT count() FROM (SELECT * FROM numbers(100)); +-- remote query result is not the total result +SELECT count() FROM remote('127.0.0.{1,2}', numbers(100));