mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
36 lines
959 B
XML
36 lines
959 B
XML
<test>
|
|
<name>trim_whitespaces</name>
|
|
<type>loop</type>
|
|
|
|
<preconditions>
|
|
<table_exists>whitespaces</table_exists>
|
|
</preconditions>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<total_time_ms>30000</total_time_ms>
|
|
</all_of>
|
|
</stop_conditions>
|
|
|
|
<main_metric>
|
|
<min_time/>
|
|
</main_metric>
|
|
|
|
<substitutions>
|
|
<substitution>
|
|
<name>func</name>
|
|
<values>
|
|
<value>value</value>
|
|
<value>trimLeft(value)</value>
|
|
<value>trimRight(value)</value>
|
|
<value>trimBoth(value)</value>
|
|
<value>replaceRegexpOne(value, '^ *', '')</value>
|
|
<value>replaceRegexpOne(value, ' *$', '')</value>
|
|
<value>replaceRegexpAll(value, '^ *| *$', '')</value>
|
|
</values>
|
|
</substitution>
|
|
</substitutions>
|
|
|
|
<query>SELECT count() FROM whitespaces WHERE NOT ignore({func})</query>
|
|
</test>
|