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;