From 00389a67a0073f7b83dd46463b7c445a7fcdc5bd Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Tue, 29 Oct 2019 14:55:59 +0800 Subject: [PATCH] add more tests --- .../queries/0_stateless/00343_array_element_generic.reference | 3 +++ dbms/tests/queries/0_stateless/00343_array_element_generic.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00343_array_element_generic.reference b/dbms/tests/queries/0_stateless/00343_array_element_generic.reference index a1273ce2962..788a7c4b9fd 100644 --- a/dbms/tests/queries/0_stateless/00343_array_element_generic.reference +++ b/dbms/tests/queries/0_stateless/00343_array_element_generic.reference @@ -1,3 +1,6 @@ +1 +1 +1 0 0 0 diff --git a/dbms/tests/queries/0_stateless/00343_array_element_generic.sql b/dbms/tests/queries/0_stateless/00343_array_element_generic.sql index 9aa2e6db7be..33a5f4dc1f2 100644 --- a/dbms/tests/queries/0_stateless/00343_array_element_generic.sql +++ b/dbms/tests/queries/0_stateless/00343_array_element_generic.sql @@ -1,3 +1,6 @@ +SELECT range(100) == range(0, 100) and range(0, 100) == range(0, 100, 1); +SELECT distinct length(range(number, number + 100, 99)) == 2 FROM numbers(1000); +SELECT distinct length(range(number, number + 100, 100)) == 1 FROM numbers(1000); SELECT range(0)[-1]; SELECT range(0)[1]; SELECT range(number)[2] FROM system.numbers LIMIT 10;