diff --git a/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference b/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference @@ -0,0 +1 @@ +[] diff --git a/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql b/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql new file mode 100644 index 00000000000..2b0851b7d90 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql @@ -0,0 +1 @@ +SELECT DISTINCT emptyArrayString() AS k FROM (SELECT * FROM system.numbers LIMIT 100000); diff --git a/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference b/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference new file mode 100644 index 00000000000..cdcf33bdad2 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference @@ -0,0 +1,3 @@ +[] +['is_registred'] +['registration_month','user_login','is_registred'] diff --git a/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql b/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql new file mode 100644 index 00000000000..296c7de2959 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql @@ -0,0 +1 @@ +SELECT DISTINCT arrayFilter(x -> notEmpty(x), arrayJoin([[''], ['is_registred'], ['registration_month','user_login','is_registred'], ['is_registred'], ['is_registred'], ['']]));