From 05f4843213e54c89ffcb674bcd9095bd0d83cbfc Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 23 May 2014 06:25:07 +0400 Subject: [PATCH] dbms: added tests [#METR-11277]. --- ...044_sorting_by_string_descending.reference | 100 ++++++++++++++++++ .../00044_sorting_by_string_descending.sql | 1 + ...rting_by_fixed_string_descending.reference | 100 ++++++++++++++++++ ...045_sorting_by_fixed_string_descending.sql | 1 + 4 files changed, 202 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.reference create mode 100644 dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.sql create mode 100644 dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference create mode 100644 dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql diff --git a/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.reference b/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.reference new file mode 100644 index 00000000000..3bc1153609a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.reference @@ -0,0 +1,100 @@ +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc diff --git a/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.sql b/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.sql new file mode 100644 index 00000000000..328bfd5b3b2 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.sql @@ -0,0 +1 @@ +SELECT s FROM (SELECT materialize('abc') AS s FROM system.numbers LIMIT 100) ORDER BY s DESC diff --git a/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference b/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference new file mode 100644 index 00000000000..3bc1153609a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference @@ -0,0 +1,100 @@ +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc +abc diff --git a/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql b/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql new file mode 100644 index 00000000000..8f0f331b69d --- /dev/null +++ b/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql @@ -0,0 +1 @@ +SELECT s FROM (SELECT toFixedString(materialize('abc'), 3) AS s FROM system.numbers LIMIT 100) ORDER BY s DESC