ClickHouse/tests/queries/0_stateless/00978_sum_map_bugfix.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
702 B
MySQL
Raw Normal View History

2019-08-02 13:12:21 +00:00
select number, arrayReduce( 'sumMap', [a],[b] ) from (select [100,100,200] a,[10,20,30] b, number from numbers(1));
select number, arrayReduce( 'sumMap', [a],[b] ) from (select materialize([100,100,200]) a,materialize([10,20,30]) b, number from numbers(10));
select number, arrayReduce( 'sumMap', [a],[b] ) from (select [100,100,200] a,[10,20,30] b, number from numbers(10));
select number, arrayReduce( 'sum', a) from (select materialize([100,100,200]) a, number from numbers(10));
2019-08-04 18:22:05 +00:00
select number, arrayReduce( 'max', [a] ) from (select materialize([100,100,200]) a, number from numbers(10));
2019-08-02 13:12:21 +00:00
2019-08-04 18:22:05 +00:00
select dumpColumnStructure([a]), arrayReduce('sumMap', [a], [a]) from (select [1, 2] a FROM numbers(2));