ClickHouse/tests/performance/format_date_time.xml
2020-04-18 15:54:16 +03:00

23 lines
650 B
XML

<test>
<tags>
</tags>
<substitutions>
<substitution>
<name>format</name>
<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>
<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>
</test>