mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
33 lines
1.2 KiB
XML
33 lines
1.2 KiB
XML
<test>
|
|
<type>loop</type>
|
|
|
|
<create_query>CREATE TABLE IF NOT EXISTS whitespaces(value String) ENGINE = MergeTree() PARTITION BY tuple() ORDER BY tuple()</create_query>
|
|
<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>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<total_time_ms>30000</total_time_ms>
|
|
</all_of>
|
|
</stop_conditions>
|
|
|
|
|
|
<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>
|
|
|
|
<drop_query>DROP TABLE IF EXISTS whitespaces</drop_query>
|
|
</test>
|