mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
bc0fbd688a
Adapt sumMap to accept an array of strings as the key column. This is useful when we do not want or cannot make the keys be numbers. Signed-off-by: Baudouin Giard <bgiard@bloomberg.net>
24 lines
734 B
Plaintext
24 lines
734 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])
|
|
([1],[1])
|
|
(['a'],[1])
|
|
(['1970-01-01 03:00:01'],[1])
|
|
(['1970-01-02'],[1])
|
|
(['01234567-89ab-cdef-0123-456789abcdef'],[1])
|
|
([1.01],[1])
|
|
(['a','b'],[1,2])
|
|
(['a','ab','abc'],[3,2,1])
|