2018-12-17 20:07:31 +00:00
<test >
<type > loop</type>
2019-02-01 15:10:13 +00:00
<create_query > CREATE TABLE IF NOT EXISTS whitespaces(value String) ENGINE = MergeTree() PARTITION BY tuple() ORDER BY tuple()</create_query>
2019-04-05 18:27:20 +00:00
<fill_query > INSERT INTO whitespaces SELECT value FROM (SELECT arrayStringConcat(groupArray(' ')) AS spaces, concat(spaces, toString(any(number)), spaces) AS value FROM numbers(100000000) GROUP BY pow(number, intHash32(number) % 4) % 12345678)</fill_query>
2018-12-17 20:07:31 +00:00
<stop_conditions >
<all_of >
<total_time_ms > 30000</total_time_ms>
</all_of>
</stop_conditions>
<main_metric >
<min_time />
</main_metric>
<substitutions >
<substitution >
2019-07-27 21:17:44 +00:00
<name > func</name>
2018-12-17 20:07:31 +00:00
<values >
2018-12-17 20:20:25 +00:00
<value > value</value>
2018-12-17 20:07:31 +00:00
<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>
2019-02-01 15:10:13 +00:00
<drop_query > DROP TABLE IF EXISTS whitespaces</drop_query>
2018-12-17 20:07:31 +00:00
</test>