From 7f06d70d45da13e1402b349563626d681e29a558 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 12 Oct 2015 10:15:57 +0300 Subject: [PATCH] dbms: added test [#METR-18382]. --- .../0_stateless/00251_has_types.reference | 20 ++++++++++++++++ .../queries/0_stateless/00251_has_types.sql | 23 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00251_has_types.reference create mode 100644 dbms/tests/queries/0_stateless/00251_has_types.sql diff --git a/dbms/tests/queries/0_stateless/00251_has_types.reference b/dbms/tests/queries/0_stateless/00251_has_types.reference new file mode 100644 index 00000000000..e22d7202705 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00251_has_types.reference @@ -0,0 +1,20 @@ +1 +1 +0 +1 +0 +1 +1 +0 +1 +0 +1 +1 +0 +1 +0 +1 +1 +0 +1 +0 diff --git a/dbms/tests/queries/0_stateless/00251_has_types.sql b/dbms/tests/queries/0_stateless/00251_has_types.sql new file mode 100644 index 00000000000..f64354b15eb --- /dev/null +++ b/dbms/tests/queries/0_stateless/00251_has_types.sql @@ -0,0 +1,23 @@ +SELECT has([1, 2, 3], 3.0); +SELECT has([1, 2.0, 3], 2); +SELECT has([1, 2.1, 3], 2); +SELECT has([1, -1], 1); +SELECT has([1, -1], 1000); + +SELECT has(materialize([1, 2, 3]), 3.0); +SELECT has(materialize([1, 2.0, 3]), 2); +SELECT has(materialize([1, 2.1, 3]), 2); +SELECT has(materialize([1, -1]), 1); +SELECT has(materialize([1, -1]), 1000); + +SELECT has([1, 2, 3], materialize(3.0)); +SELECT has([1, 2.0, 3], materialize(2)); +SELECT has([1, 2.1, 3], materialize(2)); +SELECT has([1, -1], materialize(1)); +SELECT has([1, -1], materialize(1000)); + +SELECT has(materialize([1, 2, 3]), materialize(3.0)); +SELECT has(materialize([1, 2.0, 3]), materialize(2)); +SELECT has(materialize([1, 2.1, 3]), materialize(2)); +SELECT has(materialize([1, -1]), materialize(1)); +SELECT has(materialize([1, -1]), materialize(1000));