test aggregation state multiply

This commit is contained in:
Sergei Tsetlin (rekub) 2018-06-19 14:21:44 +03:00
parent 36a3425a0f
commit 32557a36c5
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
2
0
33

View File

@ -0,0 +1,3 @@
SELECT countMerge(x) AS y FROM ( SELECT countState() * 2 AS x FROM ( SELECT 1 ));
SELECT countMerge(x) AS y FROM ( SELECT countState() * 0 AS x FROM ( SELECT 1 UNION ALL SELECT 2));
SELECT sumMerge(y) AS z FROM ( SELECT sumState(x) * 11 AS y FROM ( SELECT 1 AS x UNION ALL SELECT 2 AS x));