ClickHouse/dbms/tests/queries/0_stateless/00978_sum_map_bugfix.sql
Nikita Mikhailov 78250ea23f tests
2019-08-04 21:20:17 +03:00

10 lines
601 B
SQL

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));
select number, arrayReduce( 'max', [a] ) from (select materialize([100,100,200]) a, number from numbers(10));