ClickHouse/tests/performance/format_date_time.xml

18 lines
625 B
XML
Raw Normal View History

2018-09-19 20:48:25 +00:00
<test>
<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-06-26 19:11:43 +00:00
<query>SELECT count() FROM numbers(10000000) 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>