ClickHouse/tests/performance/format_date_time.xml

28 lines
779 B
XML
Raw Normal View History

2018-09-19 20:48:25 +00:00
<test>
<tags>
</tags>
<stop_conditions>
<any_of>
<total_time_ms>10000</total_time_ms>
2018-09-19 20:48:25 +00:00
</any_of>
</stop_conditions>
<substitutions>
<substitution>
<name>format</name>
2018-09-19 20:48:25 +00:00
<values>
<value>%F %T</value>
<value>%H:%M:%S</value>
<value>%Y-%m-%d %H:%M:%S</value>
<value>%m/%d/%Y %H:%M:%S</value>
<value>Hello</value>
<value>The current time is: %I:%M %p</value>
</values>
</substitution>
</substitutions>
2020-02-28 16:56:34 +00:00
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, formatDateTime(t, '{format}'))</query>
2018-09-19 20:48:25 +00:00
</test>