2021-05-26 13:30:43 +00:00
|
|
|
<test>
|
2020-01-31 23:01:02 +00:00
|
|
|
<settings>
|
|
|
|
<max_threads>1</max_threads>
|
|
|
|
</settings>
|
|
|
|
|
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
|
|
|
<name>scale</name>
|
|
|
|
<values>
|
|
|
|
<value>1000000</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>func</name>
|
|
|
|
<values>
|
2020-06-15 18:53:54 +00:00
|
|
|
<value>minMap</value>
|
|
|
|
<value>maxMap</value>
|
2020-01-31 23:01:02 +00:00
|
|
|
<value>sumMap</value>
|
|
|
|
<value>sumMapWithOverflow</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
|
|
|
<create_query>
|
2020-07-02 07:13:02 +00:00
|
|
|
CREATE TABLE sum_map_{scale} ENGINE Memory AS
|
2020-01-31 23:01:02 +00:00
|
|
|
SELECT
|
|
|
|
arrayMap(x -> (x % 23), range(50)) AS key,
|
|
|
|
arrayMap(x -> intDiv(number, x + 1), range(50)) AS val
|
|
|
|
FROM numbers({scale})
|
|
|
|
</create_query>
|
|
|
|
|
|
|
|
<query>SELECT {func}(key, val) FROM sum_map_{scale} FORMAT Null</query>
|
2020-05-01 07:48:45 +00:00
|
|
|
<query>SELECT {func}((key, val)) FROM sum_map_{scale} FORMAT Null</query>
|
2020-01-31 23:01:02 +00:00
|
|
|
</test>
|