From 8f64441bbff9ee6b9f2252b6c4688f861d55429b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 12 May 2015 22:28:41 +0300 Subject: [PATCH] dbms: added test [#METR-10872]. --- .../queries/0_stateless/00156_array_map_to_constant.reference | 4 ++++ .../tests/queries/0_stateless/00156_array_map_to_constant.sql | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00156_array_map_to_constant.reference create mode 100644 dbms/tests/queries/0_stateless/00156_array_map_to_constant.sql diff --git a/dbms/tests/queries/0_stateless/00156_array_map_to_constant.reference b/dbms/tests/queries/0_stateless/00156_array_map_to_constant.reference new file mode 100644 index 00000000000..37a61d493bb --- /dev/null +++ b/dbms/tests/queries/0_stateless/00156_array_map_to_constant.reference @@ -0,0 +1,4 @@ +[1] 123 +[3] 123 +[1,1] 123 +[3,4] 123 diff --git a/dbms/tests/queries/0_stateless/00156_array_map_to_constant.sql b/dbms/tests/queries/0_stateless/00156_array_map_to_constant.sql new file mode 100644 index 00000000000..b6b12888ebb --- /dev/null +++ b/dbms/tests/queries/0_stateless/00156_array_map_to_constant.sql @@ -0,0 +1,4 @@ +SELECT arrayMap(x -> 1, [2]), 123 AS y; +SELECT arrayMap(x -> x + 1, [2]), 123 AS y; +SELECT arrayMap(x -> 1, [2, 3]), 123 AS y; +SELECT arrayMap(x -> x + 1, [2, 3]), 123 AS y;