From 6aa304ba4a0ad37127e674c46875b19cd407251b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 26 Mar 2014 03:14:51 +0400 Subject: [PATCH] dbms: added tests [#METR-10572]. --- dbms/tests/queries/0_stateless/00020_sorting_arrays.reference | 4 ++++ dbms/tests/queries/0_stateless/00020_sorting_arrays.sql | 1 + dbms/tests/queries/0_stateless/00021_sorting_arrays.reference | 4 ++++ dbms/tests/queries/0_stateless/00021_sorting_arrays.sql | 1 + 4 files changed, 10 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00020_sorting_arrays.reference create mode 100644 dbms/tests/queries/0_stateless/00020_sorting_arrays.sql create mode 100644 dbms/tests/queries/0_stateless/00021_sorting_arrays.reference create mode 100644 dbms/tests/queries/0_stateless/00021_sorting_arrays.sql 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