2019-02-03 22:27:19 +00:00
|
|
|
<test>
|
|
|
|
<name>If with date and time branches</name>
|
|
|
|
|
|
|
|
<type>once</type>
|
|
|
|
|
|
|
|
<stop_conditions>
|
|
|
|
<any_of>
|
2019-05-17 11:42:41 +00:00
|
|
|
<average_speed_not_changing_for_ms>3000</average_speed_not_changing_for_ms>
|
2019-05-13 14:09:11 +00:00
|
|
|
<total_time_ms>10000</total_time_ms>
|
2019-02-03 22:27:19 +00:00
|
|
|
</any_of>
|
|
|
|
</stop_conditions>
|
|
|
|
|
|
|
|
<metrics>
|
|
|
|
<max_rows_per_second />
|
|
|
|
<max_bytes_per_second />
|
|
|
|
<avg_rows_per_second />
|
|
|
|
<avg_bytes_per_second />
|
|
|
|
</metrics>
|
|
|
|
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(if(rand() % 2, toDateTime('2019-02-04 01:24:31'), toDate('2019-02-04')))</query>
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(multiIf(rand() % 2, toDateTime('2019-02-04 01:24:31'), toDate('2019-02-04')))</query>
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(if(rand() % 2, [toDateTime('2019-02-04 01:24:31')], [toDate('2019-02-04')]))</query>
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(multiIf(rand() % 2, [toDateTime('2019-02-04 01:24:31')], [toDate('2019-02-04')]))</query>
|
|
|
|
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(if(rand() % 2, toDateTime(rand()), toDate(rand())))</query>
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(multiIf(rand() % 2, toDateTime(rand()), toDate(rand())))</query>
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(if(rand() % 2, [toDateTime(rand())], [toDate(rand())]))</query>
|
|
|
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(multiIf(rand() % 2, [toDateTime(rand())], [toDate(rand())]))</query>
|
|
|
|
</test>
|