mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
58 lines
2.7 KiB
XML
58 lines
2.7 KiB
XML
<test>
|
|
|
|
<tags>
|
|
<tag>search</tag>
|
|
</tags>
|
|
|
|
<preconditions>
|
|
<table_exists>hits_10m_single</table_exists>
|
|
</preconditions>
|
|
|
|
<type>loop</type>
|
|
|
|
<settings>
|
|
<max_memory_usage>20000000000</max_memory_usage>
|
|
</settings>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<iterations>5</iterations>
|
|
<min_time_not_changing_for_ms>10000</min_time_not_changing_for_ms>
|
|
</all_of>
|
|
<any_of>
|
|
<iterations>50</iterations>
|
|
<total_time_ms>60000</total_time_ms>
|
|
</any_of>
|
|
</stop_conditions>
|
|
|
|
<substitutions>
|
|
<substitution>
|
|
<name>small_table</name>
|
|
<values>
|
|
<!-- the same for now -->
|
|
<value>hits_10m_single</value>
|
|
</values>
|
|
</substitution>
|
|
</substitutions>
|
|
|
|
|
|
<query>SELECT ngramDistance(Title, URL) AS distance FROM {small_table} FORMAT Null</query>
|
|
<query>SELECT ngramDistance(Title, SearchPhrase) AS distance FROM {small_table} FORMAT Null</query>
|
|
<query>SELECT ngramDistance(Title, 'what is love') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistance(Title, 'baby dont hurt me') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistance(Title, 'no more') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistanceCaseInsensitive(Title, 'wHAt Is lovE') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistanceCaseInsensitive(Title, 'BABY DonT hUrT me') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistanceCaseInsensitive(Title, 'nO MOrE') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistanceUTF8(Title, URL) AS distance FROM {small_table} FORMAT Null</query>
|
|
<query>SELECT ngramDistanceUTF8(Title, SearchPhrase) AS distance FROM {small_table} FORMAT Null</query>
|
|
<query>SELECT ngramDistanceUTF8(Title, 'метрика') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistanceUTF8(URL, 'как дела') AS distance FROM {small_table} FORMAT Null</query>
|
|
<query>SELECT ngramDistanceUTF8(URL, 'чем занимаешься') AS distance FROM {small_table} FORMAT Null</query>
|
|
|
|
<query>SELECT ngramDistanceCaseInsensitiveUTF8(Title, 'Метрика') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
<query>SELECT ngramDistanceCaseInsensitiveUTF8(URL, 'как дЕлА') AS distance FROM {small_table} FORMAT Null</query>
|
|
<query>SELECT ngramDistanceCaseInsensitiveUTF8(URL, 'Чем зАнимаешЬся') AS distance FROM {small_table} FORMAT Null</query>
|
|
|
|
</test>
|