From f680176ade14e82b9d7e72a82a9ae2caa34cf1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Ercolanelli?= Date: Fri, 25 Jan 2019 20:54:46 +0100 Subject: [PATCH] sumMapWithOverflow: add test --- dbms/tests/queries/0_stateless/00502_sum_map.reference | 1 + dbms/tests/queries/0_stateless/00502_sum_map.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00502_sum_map.reference b/dbms/tests/queries/0_stateless/00502_sum_map.reference index a8d9fe95af3..0b8eec0f089 100644 --- a/dbms/tests/queries/0_stateless/00502_sum_map.reference +++ b/dbms/tests/queries/0_stateless/00502_sum_map.reference @@ -13,6 +13,7 @@ ([1],[257]) ([1],[1]) ([1],[1]) +([1],[1]) (['a'],[1]) (['1970-01-01 03:00:01'],[1]) (['1970-01-02'],[1]) diff --git a/dbms/tests/queries/0_stateless/00502_sum_map.sql b/dbms/tests/queries/0_stateless/00502_sum_map.sql index 24eab44d3d0..d70a3bfbe7f 100644 --- a/dbms/tests/queries/0_stateless/00502_sum_map.sql +++ b/dbms/tests/queries/0_stateless/00502_sum_map.sql @@ -23,6 +23,7 @@ CREATE TABLE test.sum_map_overflow(events Array(UInt8), counts Array(UInt8)) ENG INSERT INTO test.sum_map_overflow VALUES ([1], [255]), ([1], [2]); SELECT sumMap(events, counts) FROM test.sum_map_overflow; +SELECT sumMapWithOverflow(events, counts) FROM test.sum_map_overflow; DROP TABLE test.sum_map_overflow;