2019-03-05 23:52:19 +00:00
|
|
|
<test>
|
|
|
|
|
|
|
|
<tags>
|
|
|
|
<tag>search</tag>
|
|
|
|
</tags>
|
|
|
|
|
|
|
|
<preconditions>
|
2020-02-13 18:42:55 +00:00
|
|
|
<table_exists>hits_10m_single</table_exists>
|
2019-03-05 23:52:19 +00:00
|
|
|
</preconditions>
|
|
|
|
|
|
|
|
<type>loop</type>
|
|
|
|
|
2019-06-16 09:15:22 +00:00
|
|
|
<settings>
|
|
|
|
<max_memory_usage>20000000000</max_memory_usage>
|
|
|
|
</settings>
|
|
|
|
|
2019-03-05 23:52:19 +00:00
|
|
|
<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>
|
2019-06-16 09:15:22 +00:00
|
|
|
|
2020-02-28 18:49:31 +00:00
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
|
|
|
<name>small_table</name>
|
|
|
|
<values>
|
|
|
|
<value>(select * from hits_10m_single limit 2000000)</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
|
|
|
|
|
|
|
<query>SELECT DISTINCT URL,Title, ngramDistance(Title, URL) AS distance FROM {small_table} FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT SearchPhrase,Title, ngramDistance(Title, SearchPhrase) AS distance FROM {small_table} FORMAT Null</query>
|
2020-02-14 19:49:54 +00:00
|
|
|
<query>SELECT DISTINCT Title, ngramDistance(Title, 'what is love') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT Title, ngramDistance(Title, 'baby dont hurt me') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT Title, ngramDistance(Title, 'no more') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT Title, ngramDistanceCaseInsensitive(Title, 'wHAt Is lovE') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT Title, ngramDistanceCaseInsensitive(Title, 'BABY DonT hUrT me') AS distance FROM hits_10m_single FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT Title, ngramDistanceCaseInsensitive(Title, 'nO MOrE') AS distance FROM hits_10m_single FORMAT Null</query>
|
2020-02-28 18:49:31 +00:00
|
|
|
<query>SELECT DISTINCT URL,Title, ngramDistanceUTF8(Title, URL) AS distance FROM {small_table} FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT SearchPhrase,Title, ngramDistanceUTF8(Title, SearchPhrase) AS distance FROM {small_table} FORMAT Null</query>
|
2020-02-14 19:49:54 +00:00
|
|
|
<query>SELECT DISTINCT Title, ngramDistanceUTF8(Title, 'метрика') AS distance FROM hits_10m_single FORMAT Null</query>
|
2020-02-28 18:49:31 +00:00
|
|
|
<query>SELECT DISTINCT URL, ngramDistanceUTF8(URL, 'как дела') AS distance FROM {small_table} FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT URL, ngramDistanceUTF8(URL, 'чем занимаешься') AS distance FROM {small_table} FORMAT Null</query>
|
2020-02-14 19:49:54 +00:00
|
|
|
|
|
|
|
<query>SELECT DISTINCT Title, ngramDistanceCaseInsensitiveUTF8(Title, 'Метрика') AS distance FROM hits_10m_single FORMAT Null</query>
|
2020-02-28 18:49:31 +00:00
|
|
|
<query>SELECT DISTINCT URL, ngramDistanceCaseInsensitiveUTF8(URL, 'как дЕлА') AS distance FROM {small_table} FORMAT Null</query>
|
|
|
|
<query>SELECT DISTINCT URL, ngramDistanceCaseInsensitiveUTF8(URL, 'Чем зАнимаешЬся') AS distance FROM {small_table} FORMAT Null</query>
|
2019-03-05 23:52:19 +00:00
|
|
|
|
|
|
|
</test>
|