diff --git a/dbms/tests/queries/0_stateless/00372_group_by_tuple.reference b/dbms/tests/queries/0_stateless/00372_group_by_tuple.reference new file mode 100644 index 00000000000..8613174808e --- /dev/null +++ b/dbms/tests/queries/0_stateless/00372_group_by_tuple.reference @@ -0,0 +1,3 @@ +(0,'Hello') 5 +(1,'World') 5 +(1) diff --git a/dbms/tests/queries/0_stateless/00372_group_by_tuple.sql b/dbms/tests/queries/0_stateless/00372_group_by_tuple.sql new file mode 100644 index 00000000000..2f24ce75133 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00372_group_by_tuple.sql @@ -0,0 +1,2 @@ +SELECT if(number % 2, tuple(0, 'Hello'), tuple(1, 'World')) AS x, count() FROM (SELECT number FROM system.numbers LIMIT 10) GROUP BY x ORDER BY x; +SELECT if(0, tuple(0), tuple(1)) AS x GROUP BY x;