ClickHouse/tests/performance/trim_urls.xml
Alexander Kuzmenkov e4dd68039e fix
2020-11-13 08:00:43 +03:00

29 lines
893 B
XML

<test>
<preconditions>
<table_exists>hits_100m_single</table_exists>
<table_exists>hits_10m_single</table_exists>
</preconditions>
<substitutions>
<substitution>
<name>func_fast</name>
<values>
<value>trim(</value>
<value>ltrim(</value>
<value>rtrim(</value>
<value>trim(LEADING 'htpsw:/' FROM </value>
</values>
</substitution>
<substitution>
<name>func_slow</name>
<values>
<value>trim(TRAILING '/' FROM </value>
<value>trim(BOTH 'htpsw:/' FROM </value>
</values>
</substitution>
</substitutions>
<query>SELECT ignore({func_fast}URL)) FROM hits_100m_single FORMAT Null</query>
<query>SELECT ignore({func_slow}URL)) FROM hits_10m_single FORMAT Null</query>
</test>