mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
0d6094a3ea
It used to be that sumMap would return the same type as the values columns. If columns of Array(UInt8) were to be given, that would really easily cause oveflow. It now uses `getWidenDataType` (and ultimately `NearestFieldType`) in order to define the result type.
21 lines
679 B
Plaintext
21 lines
679 B
Plaintext
2000-01-01 2000-01-01 00:00:00 [1,2,3] [10,10,10]
|
|
2000-01-01 2000-01-01 00:00:00 [3,4,5] [10,10,10]
|
|
2000-01-01 2000-01-01 00:01:00 [4,5,6] [10,10,10]
|
|
2000-01-01 2000-01-01 00:01:00 [6,7,8] [10,10,10]
|
|
([1,2,3,4,5,6,7,8],[10,10,20,20,20,20,10,10])
|
|
([1,2,3,4,5,6,7,8],[10,10,20,20,20,20,10,10])
|
|
2000-01-01 00:00:00 ([1,2,3,4,5],[10,10,20,10,10])
|
|
2000-01-01 00:01:00 ([4,5,6,7,8],[10,10,20,10,10])
|
|
2000-01-01 00:00:00 [1,2,3,4,5] [10,10,20,10,10]
|
|
2000-01-01 00:01:00 [4,5,6,7,8] [10,10,20,10,10]
|
|
([1],[10])
|
|
([1,4,8],[10,20,10])
|
|
([1],[257])
|
|
([1],[1])
|
|
([1],[1])
|
|
(['a'],[1])
|
|
(['1970-01-01 03:00:01'],[1])
|
|
(['1970-01-02'],[1])
|
|
(['01234567-89ab-cdef-0123-456789abcdef'],[1])
|
|
([1.01],[1])
|