ClickHouse/tests/performance/trim_urls.xml

24 lines
744 B
XML

<test>
<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>