ClickHouse/tests/performance/group_array_moving_sum.xml

32 lines
1.1 KiB
XML
Raw Normal View History

<test>
2020-03-11 21:07:34 +00:00
<settings>
<max_memory_usage>30000000000</max_memory_usage>
</settings>
2020-03-12 09:37:57 +00:00
<substitutions>
<substitution>
<name>millions</name>
<values>
2020-03-13 13:30:54 +00:00
<value>50</value>
2020-03-12 13:06:29 +00:00
<value>100</value>
2020-03-12 09:37:57 +00:00
</values>
</substitution>
<substitution>
<name>window</name>
<values>
<value>10</value>
<value>1000</value>
<value>10000</value>
</values>
</substitution>
</substitutions>
<create_query>create table moving_sum_{millions}m engine MergeTree order by k as select number % 100 k, rand() v from numbers_mt(1000000 * {millions})</create_query>
<create_query>optimize table moving_sum_{millions}m final</create_query>
<query>select k, groupArrayMovingSum({window})(v) from moving_sum_{millions}m group by k format Null</query>
2020-03-13 13:30:54 +00:00
<query>select k % 10 kk, groupArrayMovingSum({window})(v) from moving_sum_{millions}m group by kk format Null</query>
2020-03-12 09:37:57 +00:00
<drop_query>drop table if exists moving_sum_{millions}m</drop_query>
</test>