From cea3de52434e421a77aec1a6796cca5f7204bdfe Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 8 Jul 2020 04:58:32 +0300 Subject: [PATCH] Added a test --- tests/queries/0_stateless/01376_array_fill_empty.reference | 4 ++++ tests/queries/0_stateless/01376_array_fill_empty.sql | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/01376_array_fill_empty.reference create mode 100644 tests/queries/0_stateless/01376_array_fill_empty.sql diff --git a/tests/queries/0_stateless/01376_array_fill_empty.reference b/tests/queries/0_stateless/01376_array_fill_empty.reference new file mode 100644 index 00000000000..70e8ac46074 --- /dev/null +++ b/tests/queries/0_stateless/01376_array_fill_empty.reference @@ -0,0 +1,4 @@ +[] +[] +[] +[] diff --git a/tests/queries/0_stateless/01376_array_fill_empty.sql b/tests/queries/0_stateless/01376_array_fill_empty.sql new file mode 100644 index 00000000000..38eea8a51c1 --- /dev/null +++ b/tests/queries/0_stateless/01376_array_fill_empty.sql @@ -0,0 +1,4 @@ +SELECT arrayFill(x -> (x < 10), []); +SELECT arrayFill(x -> (x < 10), emptyArrayUInt8()); +SELECT arrayFill(x -> 1, []); +SELECT arrayFill(x -> 0, []);