2018-02-26 19:00:40 +00:00
|
|
|
<test>
|
|
|
|
<type>once</type>
|
|
|
|
|
|
|
|
<stop_conditions>
|
|
|
|
<any_of>
|
2019-05-21 10:03:36 +00:00
|
|
|
<average_speed_not_changing_for_ms>6000</average_speed_not_changing_for_ms>
|
|
|
|
<total_time_ms>15000</total_time_ms>
|
2018-02-26 19:00:40 +00:00
|
|
|
</any_of>
|
|
|
|
</stop_conditions>
|
|
|
|
|
|
|
|
|
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
2019-07-27 21:17:44 +00:00
|
|
|
<name>hash_func</name>
|
2018-02-26 19:00:40 +00:00
|
|
|
<values>
|
|
|
|
<value>yandexConsistentHash</value>
|
|
|
|
<value>jumpConsistentHash</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
2019-07-27 21:17:44 +00:00
|
|
|
<name>buckets</name>
|
2018-02-26 19:00:40 +00:00
|
|
|
<values>
|
|
|
|
<value>2</value>
|
|
|
|
<value>500</value>
|
2019-08-03 19:51:47 +00:00
|
|
|
<value>32768</value>
|
2018-02-26 19:00:40 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
2019-05-15 16:44:25 +00:00
|
|
|
<query>SELECT {hash_func}(number, {buckets}) FROM system.numbers</query>
|
|
|
|
<query>SELECT sumburConsistentHash(toUInt32(number), {buckets}) FROM system.numbers</query>
|
2018-02-26 19:00:40 +00:00
|
|
|
</test>
|