sumMapWithOverflow: add test

This commit is contained in:
Léo Ercolanelli 2019-01-25 20:54:46 +01:00
parent e1d6017120
commit f680176ade
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@
([1],[257]) ([1],[257])
([1],[1]) ([1],[1])
([1],[1]) ([1],[1])
([1],[1])
(['a'],[1]) (['a'],[1])
(['1970-01-01 03:00:01'],[1]) (['1970-01-01 03:00:01'],[1])
(['1970-01-02'],[1]) (['1970-01-02'],[1])

View File

@ -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]); INSERT INTO test.sum_map_overflow VALUES ([1], [255]), ([1], [2]);
SELECT sumMap(events, counts) FROM test.sum_map_overflow; SELECT sumMap(events, counts) FROM test.sum_map_overflow;
SELECT sumMapWithOverflow(events, counts) FROM test.sum_map_overflow;
DROP TABLE test.sum_map_overflow; DROP TABLE test.sum_map_overflow;