diff --git a/dbms/tests/queries/0_stateless/00020_sorting_arrays.reference b/dbms/tests/queries/0_stateless/00020_sorting_arrays.reference new file mode 100644 index 00000000000..95c9078cae1 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00020_sorting_arrays.reference @@ -0,0 +1,4 @@ +[1,1] +[2] +[3,4,5] +[6,7] diff --git a/dbms/tests/queries/0_stateless/00020_sorting_arrays.sql b/dbms/tests/queries/0_stateless/00020_sorting_arrays.sql new file mode 100644 index 00000000000..69ddf6c2b0d --- /dev/null +++ b/dbms/tests/queries/0_stateless/00020_sorting_arrays.sql @@ -0,0 +1 @@ +SELECT arrayJoin([[3,4,5], [6,7], [2], [1,1]]) AS x ORDER BY x diff --git a/dbms/tests/queries/0_stateless/00021_sorting_arrays.reference b/dbms/tests/queries/0_stateless/00021_sorting_arrays.reference new file mode 100644 index 00000000000..9ff07694305 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00021_sorting_arrays.reference @@ -0,0 +1,4 @@ +[6,7] +[3,4,5] +[2] +[1,1] diff --git a/dbms/tests/queries/0_stateless/00021_sorting_arrays.sql b/dbms/tests/queries/0_stateless/00021_sorting_arrays.sql new file mode 100644 index 00000000000..e2034d94fa2 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00021_sorting_arrays.sql @@ -0,0 +1 @@ +SELECT arrayJoin([[3,4,5], [6,7], [2], [1,1]]) AS x ORDER BY x DESC