diff --git a/tests/queries/0_stateless/00120_join_and_group_by.reference b/tests/queries/0_stateless/00120_join_and_group_by.reference index 417dbb5b661..9b3afb80a8d 100644 --- a/tests/queries/0_stateless/00120_join_and_group_by.reference +++ b/tests/queries/0_stateless/00120_join_and_group_by.reference @@ -1,11 +1,11 @@ 0 +4416930539393268817 1241149650 9 +4761183170873013810 4249604106 0 7766709361750702608 3902320246 4 +9624464864560415994 1298551497 3 10577349846663553072 1343103100 1 11700034558374135620 1618865725 8 -18198135717204167749 1996614413 2 -4761183170873013810 4249604106 0 12742043333840853032 1295823179 6 -9624464864560415994 1298551497 3 -4416930539393268817 1241149650 9 -15228578409069794350 2641603337 5 13365811232860260488 3844986530 7 +15228578409069794350 2641603337 5 +18198135717204167749 1996614413 2 diff --git a/tests/queries/0_stateless/00120_join_and_group_by.sql b/tests/queries/0_stateless/00120_join_and_group_by.sql index 21168443ee4..005e25a7127 100644 --- a/tests/queries/0_stateless/00120_join_and_group_by.sql +++ b/tests/queries/0_stateless/00120_join_and_group_by.sql @@ -3,4 +3,4 @@ SELECT value FROM system.one ANY LEFT JOIN (SELECT dummy, dummy AS value) js2 US SELECT value1, value2, sum(number) FROM (SELECT number, intHash64(number) AS value1 FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN (SELECT number, intHash32(number) AS value2 FROM system.numbers LIMIT 10) js2 -USING number GROUP BY value1, value2; +USING number GROUP BY value1, value2 ORDER BY value1, value2; diff --git a/tests/queries/0_stateless/00206_empty_array_to_single.sql b/tests/queries/0_stateless/00206_empty_array_to_single.sql index 9724aa3fda7..0e3ff4f3537 100644 --- a/tests/queries/0_stateless/00206_empty_array_to_single.sql +++ b/tests/queries/0_stateless/00206_empty_array_to_single.sql @@ -1,5 +1,5 @@ SELECT emptyArrayToSingle(arrayFilter(x -> x != 99, arrayJoin([[1, 2], [99], [4, 5, 6]]))); -SELECT emptyArrayToSingle(emptyArrayString()), emptyArrayToSingle(emptyArrayDate()), emptyArrayToSingle(emptyArrayDateTime()); +SELECT emptyArrayToSingle(emptyArrayString()), emptyArrayToSingle(emptyArrayDate()), emptyArrayToSingle(arrayFilter(x -> 0, [now('Europe/Moscow')])); SELECT emptyArrayToSingle(range(number % 3)),