diff --git a/dbms/tests/queries/0_stateless/00041_big_array_join.reference b/dbms/tests/queries/0_stateless/00041_big_array_join.reference index 3e2fa13227d..fa5a8573b1c 100644 --- a/dbms/tests/queries/0_stateless/00041_big_array_join.reference +++ b/dbms/tests/queries/0_stateless/00041_big_array_join.reference @@ -1,6 +1,7 @@ 1000000 1000000 -1000000 499999500000 +1000000 126992025 1000000 -1000000 499999500000 +1000000 126992025 1000000 +1000000 126992025 diff --git a/dbms/tests/queries/0_stateless/00041_big_array_join.sql b/dbms/tests/queries/0_stateless/00041_big_array_join.sql index 29d4fae5740..e844eb8500a 100644 --- a/dbms/tests/queries/0_stateless/00041_big_array_join.sql +++ b/dbms/tests/queries/0_stateless/00041_big_array_join.sql @@ -5,9 +5,10 @@ INSERT INTO test.big_array SELECT groupArray(number % 255) AS x FROM (SELECT * F SELECT count() FROM test.big_array ARRAY JOIN x; SELECT count() FROM test.big_array ARRAY JOIN x AS y; -SELECT countIf(has(x, toUInt64(10))), sum(y) FROM test.big_array ARRAY JOIN x AS y; -SELECT countIf(has(x, toUInt64(10))) FROM test.big_array ARRAY JOIN x AS y; -SELECT countIf(has(x, toUInt64(10))), sum(y) FROM test.big_array ARRAY JOIN x AS y WHERE 1; -SELECT countIf(has(x, toUInt64(10))) FROM test.big_array ARRAY JOIN x AS y WHERE 1; +SELECT countIf(has(x, 10)), sum(y) FROM test.big_array ARRAY JOIN x AS y; +SELECT countIf(has(x, 10)) FROM test.big_array ARRAY JOIN x AS y; +SELECT countIf(has(x, 10)), sum(y) FROM test.big_array ARRAY JOIN x AS y WHERE 1; +SELECT countIf(has(x, 10)) FROM test.big_array ARRAY JOIN x AS y WHERE 1; +SELECT countIf(has(x, 10)), sum(y) FROM test.big_array ARRAY JOIN x AS y WHERE has(x,15); DROP TABLE test.big_array;