This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new fc8f4c787d [enhancement](test) add yandex_metrica cases to p2 (#12692)
fc8f4c787d is described below

commit fc8f4c787d87a89a5de71f1c90223f24bff39060
Author: Yongqiang YANG <98214048+dataroar...@users.noreply.github.com>
AuthorDate: Mon Sep 19 08:37:48 2022 +0800

    [enhancement](test) add yandex_metrica cases to p2 (#12692)
---
 .../sql/duplicateAggregationKeys.out               | 225 +++++++++++++++++++++
 .../data/yandex_metrica_p2/sql/like1.out           |   4 +
 .../data/yandex_metrica_p2/sql/like2.out           |   4 +
 .../data/yandex_metrica_p2/sql/like3.out           |   4 +
 .../data/yandex_metrica_p2/sql/like4.out           |   4 +
 .../data/yandex_metrica_p2/sql/loyalty.out         |  15 ++
 .../data/yandex_metrica_p2/sql/maxStringIf.out     |  23 +++
 .../data/yandex_metrica_p2/sql/minMax.out          |  23 +++
 .../sql/monotonicEvaluationSegfault.out            |   4 +
 .../data/yandex_metrica_p2/sql/subqueryInWhere.out |   4 +
 .../data/yandex_metrica_p2/sql/where01.out         |   3 +
 .../data/yandex_metrica_p2/sql/where02.out         |   3 +
 regression-test/data/yandex_metrica_p2/view.out    |  28 +++
 .../suites/yandex_metrica_p2/ddl/hits.sql          | 142 +++++++++++++
 .../suites/yandex_metrica_p2/ddl/visits.sql        | 190 +++++++++++++++++
 .../suites/yandex_metrica_p2/load.groovy           |  74 +++++++
 .../sql/duplicateAggregationKeys.sql               |   1 +
 .../suites/yandex_metrica_p2/sql/like1.sql         |   1 +
 .../suites/yandex_metrica_p2/sql/like2.sql         |   1 +
 .../suites/yandex_metrica_p2/sql/like3.sql         |   1 +
 .../suites/yandex_metrica_p2/sql/like4.sql         |   1 +
 .../suites/yandex_metrica_p2/sql/loyalty.sql       |  13 ++
 .../suites/yandex_metrica_p2/sql/maxStringIf.sql   |   1 +
 .../suites/yandex_metrica_p2/sql/minMax.sql        |   1 +
 .../sql/monotonicEvaluationSegfault.sql            |   1 +
 .../yandex_metrica_p2/sql/subqueryInWhere.sql      |   1 +
 .../suites/yandex_metrica_p2/sql/where01.sql       |   1 +
 .../suites/yandex_metrica_p2/sql/where02.sql       |   1 +
 .../suites/yandex_metrica_p2/view.groovy           |  45 +++++
 29 files changed, 819 insertions(+)

diff --git 
a/regression-test/data/yandex_metrica_p2/sql/duplicateAggregationKeys.out 
b/regression-test/data/yandex_metrica_p2/sql/duplicateAggregationKeys.out
new file mode 100644
index 0000000000..c85371a435
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/duplicateAggregationKeys.out
@@ -0,0 +1,225 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !duplicateAggregationKeys --
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-17      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-18      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-19      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-20      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-21      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-22      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-barana.ru/traction.html#maybettaya       2014-03-23      
http://auto.ru/chatay-barana.ru/traction.html#maybettaya
+http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan     2014-03-17      
http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan
+http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan     2014-03-18      
http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan
+http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan     2014-03-19      
http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan
+http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan     2014-03-20      
http://auto.ru/chatay-baranta_bound-in-tanks.ru/forumyazan
+http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny 2014-03-17      
http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny
+http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny 2014-03-18      
http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny
+http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny 2014-03-19      
http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny
+http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny 2014-03-20      
http://auto.ru/chatay-baranta_bound-in-thankYou=ru/tver/zhanny
+http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta   
2014-03-17      
http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta
+http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta   
2014-03-18      
http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta
+http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta   
2014-03-19      
http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta
+http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta   
2014-03-20      
http://auto.ru/chatay-baranta_bound-in-the-asfalt.ru/guru.app4smarta
+http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe        
2014-03-17      http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe
+http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe        
2014-03-18      http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe
+http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe        
2014-03-19      http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe
+http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe        
2014-03-20      http://auto.ru/chatay-baranta_bound-in-trannie/spb_eco_classnoe
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-17      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-18      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-19      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-20      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-21      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-22      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi    
2014-03-23      
http://auto.ru/chatay-bibolge.ru/yandex.ua/obyaschenshchennoktalahi
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-17      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-18      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-19      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-20      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-21      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-22      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx     
2014-03-23      
http://auto.ru/chatay-bit-gd-geli-bolshe__298682.13.xls&nails.aspx
+http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet    2014-03-17      
http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet
+http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet    2014-03-18      
http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet
+http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet    2014-03-19      
http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet
+http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet    2014-03-20      
http://auto.ru/chatay-bit-yz-odezhda/velik.hurriyet
+http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u    2014-03-17      
http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u
+http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u    2014-03-18      
http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u
+http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u    2014-03-19      
http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u
+http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u    2014-03-20      
http://auto.ru/chatay-bit-yz-odezhda/vereya/dlike4u
+http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod  2014-03-17      
http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod
+http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod  2014-03-18      
http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod
+http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod  2014-03-19      
http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod
+http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod  2014-03-20      
http://auto.ru/chatay-bit-yz-odezhda/verhnya/bankovod
+http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego   2014-03-17      
http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego
+http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego   2014-03-18      
http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego
+http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego   2014-03-19      
http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego
+http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego   2014-03-20      
http://auto.ru/chatay-bit-yz-odezhda/versonal/5/sego
+http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede 2014-03-17      
http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede
+http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede 2014-03-18      
http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede
+http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede 2014-03-19      
http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede
+http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede 2014-03-20      
http://auto.ru/chatay-john-Den-You-TheAgence=&commemchurkiyede
+http://auto.ru/chatay-john-Den-You-TheAgents/c1303954  2014-03-17      
http://auto.ru/chatay-john-Den-You-TheAgents/c1303954
+http://auto.ru/chatay-john-Den-You-TheAgents/c1303954  2014-03-18      
http://auto.ru/chatay-john-Den-You-TheAgents/c1303954
+http://auto.ru/chatay-john-Den-You-TheAgents/c1303954  2014-03-19      
http://auto.ru/chatay-john-Den-You-TheAgents/c1303954
+http://auto.ru/chatay-john-Den-You-TheAgents/c1303954  2014-03-20      
http://auto.ru/chatay-john-Den-You-TheAgents/c1303954
+http://auto.ru/chatay-john-Den-Yunan-rasskRollback     2014-03-17      
http://auto.ru/chatay-john-Den-Yunan-rasskRollback
+http://auto.ru/chatay-john-Den-Yunan-rasskRollback     2014-03-18      
http://auto.ru/chatay-john-Den-Yunan-rasskRollback
+http://auto.ru/chatay-john-Den-Yunan-rasskRollback     2014-03-19      
http://auto.ru/chatay-john-Den-Yunan-rasskRollback
+http://auto.ru/chatay-john-Den-Yunan-rasskRollback     2014-03-20      
http://auto.ru/chatay-john-Den-Yunan-rasskRollback
+http://auto.ru/chatay-john-Den-Yunanija.com%2F20       2014-03-22      
http://auto.ru/chatay-john-Den-Yunanija.com%2F20
+http://auto.ru/chatay-john-Den-Yunanija.com%2F20       2014-03-23      
http://auto.ru/chatay-john-Den-Yunanija.com%2F20
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback        2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback        2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback        2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback        2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&callback
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&user    2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&user
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&user    2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&user
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&user    2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&user
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&user    2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&user
+http://auto.ru/chatay-john-Den-Yunanija.com.tr&useriya 2014-03-23      
http://auto.ru/chatay-john-Den-Yunanija.com.tr&useriya
+http://auto.ru/chatay-john-Den-Yunanija.com.tr/oauth   2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.com.tr/oauth
+http://auto.ru/chatay-john-Den-Yunanija.com.tr/oauth   2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.com.tr/oauth
+http://auto.ru/chatay-john-Den-Yunanija.com.tr/oauth   2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.com.tr/oauth
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina 2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina 2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina 2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina 2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/ukraina
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex  2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex  2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex  2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex
+http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex  2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.com.ua/yandex
+http://auto.ru/chatay-john-Den-Yunanija.com/commetrovies       2014-03-23      
http://auto.ru/chatay-john-Den-Yunanija.com/commetrovies
+http://auto.ru/chatay-john-Den-Yunanija.com/obyavlenie 2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.com/obyavlenie
+http://auto.ru/chatay-john-Den-Yunanija.com/obyavlenie 2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.com/obyavlenie
+http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom  2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom
+http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom  2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom
+http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom  2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom
+http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom  2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.html#medictengliyskom
+http://auto.ru/chatay-john-Den-Yunanija.html/photos    2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.html/photos
+http://auto.ru/chatay-john-Den-Yunanija.html/photos    2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.html/photos
+http://auto.ru/chatay-john-Den-Yunanija.html/photos    2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.html/photos
+http://auto.ru/chatay-john-Den-Yunanija.html/photos    2014-03-21      
http://auto.ru/chatay-john-Den-Yunanija.html/photos
+http://auto.ru/chatay-john-Den-Yunanija.html/photos    2014-03-22      
http://auto.ru/chatay-john-Den-Yunanija.html/photos
+http://auto.ru/chatay-john-Den-Yunanija.html?area      2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.html?area
+http://auto.ru/chatay-john-Den-Yunanija.html?area      2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.html?area
+http://auto.ru/chatay-john-Den-Yunanija.html?area      2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.html?area
+http://auto.ru/chatay-john-Den-Yunanija.html?area      2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.html?area
+http://auto.ru/chatay-john-Den-Yunanija.html?area      2014-03-21      
http://auto.ru/chatay-john-Den-Yunanija.html?area
+http://auto.ru/chatay-john-Den-Yunanija.html?area      2014-03-22      
http://auto.ru/chatay-john-Den-Yunanija.html?area
+http://auto.ru/chatay-john-Den-Yunanija.html?period    2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.html?period
+http://auto.ru/chatay-john-Den-Yunanija.html?period    2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.html?period
+http://auto.ru/chatay-john-Den-Yunanija.html?period    2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.html?period
+http://auto.ru/chatay-john-Den-Yunanija.html?period    2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.html?period
+http://auto.ru/chatay-john-Den-Yunanija.html?pid       2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.html?pid
+http://auto.ru/chatay-john-Den-Yunanija.html?pid       2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.html?pid
+http://auto.ru/chatay-john-Den-Yunanija.html?pid       2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.html?pid
+http://auto.ru/chatay-john-Den-Yunanija.html?pid       2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.html?pid
+http://auto.ru/chatay-john-Den-Yunanija.html?rtn       2014-03-17      
http://auto.ru/chatay-john-Den-Yunanija.html?rtn
+http://auto.ru/chatay-john-Den-Yunanija.html?rtn       2014-03-18      
http://auto.ru/chatay-john-Den-Yunanija.html?rtn
+http://auto.ru/chatay-john-Den-Yunanija.html?rtn       2014-03-19      
http://auto.ru/chatay-john-Den-Yunanija.html?rtn
+http://auto.ru/chatay-john-Den-Yunanija.html?rtn       2014-03-20      
http://auto.ru/chatay-john-Den-Yunanija.html?rtn
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-17      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-18      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-19      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-20      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-21      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-22      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com    2014-03-23      
http://auto.ru/chatay-uchits/sem-yzyil-sony-osta.coccoc.com
+http://auto.ru/chatay-uchits/thegames/page=http:       2014-03-17      
http://auto.ru/chatay-uchits/thegames/page=http:
+http://auto.ru/chatay-uchits/thegames/page=http:       2014-03-18      
http://auto.ru/chatay-uchits/thegames/page=http:
+http://auto.ru/chatay-uchits/thegames/page=http:       2014-03-19      
http://auto.ru/chatay-uchits/thegames/page=http:
+http://auto.ru/chatay-uchits/thegames/page=http:       2014-03-20      
http://auto.ru/chatay-uchits/thegames/page=http:
+http://auto.ru/chatay-uchits/thegames/page=https       2014-03-17      
http://auto.ru/chatay-uchits/thegames/page=https
+http://auto.ru/chatay-uchits/thegames/page=https       2014-03-18      
http://auto.ru/chatay-uchits/thegames/page=https
+http://auto.ru/chatay-uchits/thegames/page=https       2014-03-19      
http://auto.ru/chatay-uchits/thegames/page=https
+http://auto.ru/chatay-uchits/thegames/page=https       2014-03-20      
http://auto.ru/chatay-uchits/thegames/page=https
+http://auto.ru/chatay-uchits/thegames/pass.com.ua      2014-03-18      
http://auto.ru/chatay-uchits/thegames/pass.com.ua
+http://auto.ru/chatay-uchits/thegames/pass.com.ua      2014-03-19      
http://auto.ru/chatay-uchits/thegames/pass.com.ua
+http://auto.ru/chatay-uchits/thegames/pass.com.ua      2014-03-20      
http://auto.ru/chatay-uchits/thegames/pass.com.ua
+http://auto.ru/chatay-uchits/thegames/pass.com/effers  2014-03-17      
http://auto.ru/chatay-uchits/thegames/pass.com/effers
+http://auto.ru/chatay-uchits/thegames/pass.com/effers  2014-03-18      
http://auto.ru/chatay-uchits/thegames/pass.com/effers
+http://auto.ru/chatay-uchits/thegames/pass.com/effers  2014-03-19      
http://auto.ru/chatay-uchits/thegames/pass.com/effers
+http://auto.ru/chatay-uchits/thegames/pass.com/effers  2014-03-20      
http://auto.ru/chatay-uchits/thegames/pass.com/effers
+http://auto.ru/chatay-uchits/thegames/pass.com/iframe  2014-03-18      
http://auto.ru/chatay-uchits/thegames/pass.com/iframe
+http://auto.ru/chatay-uchits/thegames/pass.com/iframe  2014-03-19      
http://auto.ru/chatay-uchits/thegames/pass.com/iframe
+http://auto.ru/chatay-uchits/thegames/pass.com/iframe  2014-03-20      
http://auto.ru/chatay-uchits/thegames/pass.com/iframe
+http://auto.ru/chatay-uchits/thegames/pass.com/iframe  2014-03-22      
http://auto.ru/chatay-uchits/thegames/pass.com/iframe
+http://auto.ru/chatay-uchits/thegames/pass.com/iframe  2014-03-23      
http://auto.ru/chatay-uchits/thegames/pass.com/iframe
+http://auto.ru/chatay-uchits/thegames/pass.com/istonomicha     2014-03-23      
http://auto.ru/chatay-uchits/thegames/pass.com/istonomicha
+http://auto.ru/chatay-uchits/thegames/pass.com/tovaja  2014-03-23      
http://auto.ru/chatay-uchits/thegames/pass.com/tovaja
+http://auto.ru/chatay-uchits/thegames/password/?type   2014-03-22      
http://auto.ru/chatay-uchits/thegames/password/?type
+http://auto.ru/chatay-uchits/thegames/password=&to     2014-03-21      
http://auto.ru/chatay-uchits/thegames/password=&to
+http://auto.ru/chatay-uchits/thegames/password=&to     2014-03-22      
http://auto.ru/chatay-uchits/thegames/password=&to
+http://auto.ru/chatay-uchits/thegames/passwords=       2014-03-22      
http://auto.ru/chatay-uchits/thegames/passwords=
+http://auto.ru/chatay-uchits/thegames/passwords=Поддержитель   2014-03-22      
http://auto.ru/chatay-uchits/thegames/passwords=Поддержитель
+http://auto.ru/chatay-uchits/thegames/passwordsPerPage 2014-03-22      
http://auto.ru/chatay-uchits/thegames/passwordsPerPage
+http://auto.ru/chatay-uchits/thegames/passwords[0      2014-03-22      
http://auto.ru/chatay-uchits/thegames/passwords[0
+http://auto.ru/chatay-uchits/thegames/passwordstrelation       2014-03-22      
http://auto.ru/chatay-uchits/thegames/passwordstrelation
+http://auto.ru/chatay-uchits/thegames/public/?hash     2014-03-17      
http://auto.ru/chatay-uchits/thegames/public/?hash
+http://auto.ru/chatay-uchits/thegames/public/?hash     2014-03-18      
http://auto.ru/chatay-uchits/thegames/public/?hash
+http://auto.ru/chatay-uchits/thegames/public/?hash     2014-03-19      
http://auto.ru/chatay-uchits/thegames/public/?hash
+http://auto.ru/chatay-uchits/thegames/public/?hash     2014-03-20      
http://auto.ru/chatay-uchits/thegames/public/?hash
+http://auto.ru/chatay-uchits/thegames/puted_facet      2014-03-17      
http://auto.ru/chatay-uchits/thegames/puted_facet
+http://auto.ru/chatay-uchits/thegames/puted_facet      2014-03-18      
http://auto.ru/chatay-uchits/thegames/puted_facet
+http://auto.ru/chatay-uchits/thegames/puted_facet      2014-03-19      
http://auto.ru/chatay-uchits/thegames/puted_facet
+http://auto.ru/chatay-uchits/thegames/puted_facet      2014-03-20      
http://auto.ru/chatay-uchits/thegames/puted_facet
+http://auto.ru/chatay-uchits/thegames/puted_from       2014-03-17      
http://auto.ru/chatay-uchits/thegames/puted_from
+http://auto.ru/chatay-uchits/thegames/puted_from       2014-03-18      
http://auto.ru/chatay-uchits/thegames/puted_from
+http://auto.ru/chatay-uchits/thegames/puted_from       2014-03-19      
http://auto.ru/chatay-uchits/thegames/puted_from
+http://auto.ru/chatay-uchits/thegames/puted_from       2014-03-20      
http://auto.ru/chatay-uchits/thegames/puted_from
+http://auto.ru/chatay-uchits/thegames/putery/Roman     2014-03-17      
http://auto.ru/chatay-uchits/thegames/putery/Roman
+http://auto.ru/chatay-uchits/thegames/putery/Roman     2014-03-18      
http://auto.ru/chatay-uchits/thegames/putery/Roman
+http://auto.ru/chatay-uchits/thegames/putery/Roman     2014-03-19      
http://auto.ru/chatay-uchits/thegames/putery/Roman
+http://auto.ru/chatay-uchits/thegames/putery/Roman     2014-03-20      
http://auto.ru/chatay-uchits/thegames/putery/Roman
+http://auto.ru/chatay-uchits/thegames/putina/artira    2014-03-17      
http://auto.ru/chatay-uchits/thegames/putina/artira
+http://auto.ru/chatay-uchits/thegames/putina/artira    2014-03-18      
http://auto.ru/chatay-uchits/thegames/putina/artira
+http://auto.ru/chatay-uchits/thegames/putina/artira    2014-03-19      
http://auto.ru/chatay-uchits/thegames/putina/artira
+http://auto.ru/chatay-uchits/thegames/putina/artira    2014-03-20      
http://auto.ru/chatay-uchits/thegames/putina/artira
+http://auto.ru/chatay-uchits/thegames/putina_2008      2014-03-17      
http://auto.ru/chatay-uchits/thegames/putina_2008
+http://auto.ru/chatay-uchits/thegames/putina_2008      2014-03-18      
http://auto.ru/chatay-uchits/thegames/putina_2008
+http://auto.ru/chatay-uchits/thegames/putina_2008      2014-03-19      
http://auto.ru/chatay-uchits/thegames/putina_2008
+http://auto.ru/chatay-uchits/thegames/putina_2008      2014-03-20      
http://auto.ru/chatay-uchits/thegames/putina_2008
+http://auto.ru/chatay-uchits/thegames/putinatik_3      2014-03-17      
http://auto.ru/chatay-uchits/thegames/putinatik_3
+http://auto.ru/chatay-uchits/thegames/putinatik_3      2014-03-18      
http://auto.ru/chatay-uchits/thegames/putinatik_3
+http://auto.ru/chatay-uchits/thegames/putinatik_3      2014-03-19      
http://auto.ru/chatay-uchits/thegames/putinatik_3
+http://auto.ru/chatay-uchits/thegames/putinatik_3      2014-03-20      
http://auto.ru/chatay-uchits/thegames/putinatik_3
+http://auto.ru/chatay-uchits/thegames/putinato-po      2014-03-17      
http://auto.ru/chatay-uchits/thegames/putinato-po
+http://auto.ru/chatay-uchits/thegames/putinato-po      2014-03-18      
http://auto.ru/chatay-uchits/thegames/putinato-po
+http://auto.ru/chatay-uchits/thegames/putinato-po      2014-03-19      
http://auto.ru/chatay-uchits/thegames/putinato-po
+http://auto.ru/chatay-uchits/thegames/putinato-po      2014-03-20      
http://auto.ru/chatay-uchits/thegames/putinato-po
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-17      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-18      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-19      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-20      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-21      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-22      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/chatayru.tsn.ua/artisemeyen     2014-03-23      
http://auto.ru/chatayru.tsn.ua/artisemeyen
+http://auto.ru/click.shortcut=true&groups[]=300&racelog&id=1872347416/view/48/r=a.me/istant-poshiny/9513701.ru/news.biz/sony
   2014-03-21      
http://auto.ru/click.shortcut=true&groups[]=300&racelog&id=1872347416/view/48/r=a.me/istant-poshiny/9513701.ru/news.biz/sony
+http://auto.ru/click.shortcut=true&groups[]=300&racelog&id=1872347416/view/48/r=a.me/istant-poshiny/9513701.ru/news.biz/sony
   2014-03-22      
http://auto.ru/click.shortcut=true&groups[]=300&racelog&id=1872347416/view/48/r=a.me/istant-poshiny/9513701.ru/news.biz/sony
+http://faber/frame/frm_index.ru        2014-03-17      
http://faber/frame/frm_index.ru
+http://faber/frame/frm_index.ru        2014-03-18      
http://faber/frame/frm_index.ru
+http://faber/frame/frm_index.ru        2014-03-19      
http://faber/frame/frm_index.ru
+http://faber/frame/frm_index.ru        2014-03-20      
http://faber/frame/frm_index.ru
+http://faber/frame/frm_index.ru        2014-03-21      
http://faber/frame/frm_index.ru
+http://faber/frame/frm_index.ru        2014-03-22      
http://faber/frame/frm_index.ru
+http://faber/frame/frm_index.ru        2014-03-23      
http://faber/frame/frm_index.ru
+http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
  2014-03-17      
http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
+http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
  2014-03-18      
http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
+http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
  2014-03-19      
http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
+http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
  2014-03-20      
http://minsk/odessages.yandex.ru/vorozhitelnichaet-risunk-v-kiev/школад&startv.com.tr
+http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
     2014-03-17      
http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
+http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
     2014-03-18      
http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
+http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
     2014-03-19      
http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
+http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
     2014-03-20      
http://minsk/odessages.yandex.ru/vorozhitelniki.ru/?mode=on&order=02.03.1307%26lr%3D1%26sid%3D12499454a73bce1f196d88644194
+http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
        2014-03-19      
http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
+http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
        2014-03-20      
http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
+http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
        2014-03-22      
http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
+http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
        2014-03-23      
http://minsk/odessages.yandex.ru/vorozhitelniy-bolsha.info=ww-1425-wh-113467157_254222883_0&gearbox][2]=0&sort=mobilein
+http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
   2014-03-17      
http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
+http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
   2014-03-18      
http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
+http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
   2014-03-19      
http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
+http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
   2014-03-20      
http://minsk/odessages.yandex.ru/vorozhitelno_otdyh/tube.com/Magazin%2Fttopic.ru/ulichnopoisk.ru/novosti/352662-25-teknoloji
+http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
        2014-03-17      
http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
+http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
        2014-03-18      
http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
+http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
        2014-03-19      
http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
+http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
        2014-03-20      
http://minsk/odessages.yandex.ru/vorozhitelnosti/Armanada-yeni-boyiny_i_motot-birthday=1#body_key=50aa1f0bbce1fc00b6a54
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/like1.out 
b/regression-test/data/yandex_metrica_p2/sql/like1.out
new file mode 100644
index 0000000000..104cc72cd2
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/like1.out
@@ -0,0 +1,4 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !like1 --
+7521
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/like2.out 
b/regression-test/data/yandex_metrica_p2/sql/like2.out
new file mode 100644
index 0000000000..630c64872d
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/like2.out
@@ -0,0 +1,4 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !like2 --
+0
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/like3.out 
b/regression-test/data/yandex_metrica_p2/sql/like3.out
new file mode 100644
index 0000000000..44db92fd8c
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/like3.out
@@ -0,0 +1,4 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !like3 --
+7521
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/like4.out 
b/regression-test/data/yandex_metrica_p2/sql/like4.out
new file mode 100644
index 0000000000..405a69ec11
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/like4.out
@@ -0,0 +1,4 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !like4 --
+51354
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/loyalty.out 
b/regression-test/data/yandex_metrica_p2/sql/loyalty.out
new file mode 100644
index 0000000000..f827c60278
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/loyalty.out
@@ -0,0 +1,15 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !loyalty --
+-10    5604
+-9     603
+-8     236
+-7     133
+-6     123
+-5     105
+5      82
+6      91
+7      102
+8      156
+9      222
+10     4291
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/maxStringIf.out 
b/regression-test/data/yandex_metrica_p2/sql/maxStringIf.out
new file mode 100644
index 0000000000..d9a9ffac1a
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/maxStringIf.out
@@ -0,0 +1,23 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !maxStringIf --
+1704509        523264  نيك امريكي نيك افلام سكس جامد
+732797 475698  نيك سكس سيحاق
+598875 337212  سکس باصات
+792887 252197  №2267 отзыв
+3807842        196036  ярмаркетовара 200кг купить по неделю тебелье
+25703952       147211  
+716829 90109   яндекс повыш
+59183  85379   франция машину угловы крузер из кофе
+33010362       77807   ярмаркетовара 200кг купить по неделю тебелье
+800784 77492   ярмаркур смерти теплицы из чего
+20810645       73213   ярмаркетовара 200кг купить по неделю тебе перево 
метиков детский
+25843850       68945   электросчет-фактура
+23447120       67570   южная степанов
+14739804       64174   штангал волк
+32077710       60456   
+22446879       58389   فیلم سكس امريكي نيك
+170282 57017   ل افلام السكس
+11482817       52345   я скачать игры
+63469  52142   яндекс марте рокус надписями я любимому у полосы фото минск
+29103473       47758   
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/minMax.out 
b/regression-test/data/yandex_metrica_p2/sql/minMax.out
new file mode 100644
index 0000000000..3b5cbbb0cb
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/minMax.out
@@ -0,0 +1,23 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !minMax --
+1704509        4611700827100483880     9223360787015464643
+732797 4611701940806302259     9223355550934604746
+598875 4611701407242345792     9223362250391155632
+792887 4611699550286611812     9223290551912005343
+3807842        4611710821592843606     9223326163906184987
+25703952       4611709443519524003     9223353913449113943
+716829 4611852156092872082     9223361623076951140
+59183  4611730685242027332     9223354909338698162
+33010362       4611704682869732882     9223268545373999677
+800784 4611752907938305166     9223340418389788041
+20810645       4611712185532639162     9223218900001937412
+25843850       4611690025407720929     9223346023778617822
+23447120       4611796031755620254     9223329309291309758
+14739804       4611692230555590277     9223313509005166531
+32077710       4611884228437061959     9223352444952988904
+22446879       4611846229717089436     9223124373140579096
+170282 4611833225706935900     9223371583739401906
+11482817       4611708000353743073     9223337838355779113
+63469  4611695097019173921     9223353530156141191
+29103473       4611744585914335132     9223333530281362537
+
diff --git 
a/regression-test/data/yandex_metrica_p2/sql/monotonicEvaluationSegfault.out 
b/regression-test/data/yandex_metrica_p2/sql/monotonicEvaluationSegfault.out
new file mode 100644
index 0000000000..5b0e84c840
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/monotonicEvaluationSegfault.out
@@ -0,0 +1,4 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !monotonicEvaluationSegfault --
+0
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/subqueryInWhere.out 
b/regression-test/data/yandex_metrica_p2/sql/subqueryInWhere.out
new file mode 100644
index 0000000000..3fdf7035b4
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/subqueryInWhere.out
@@ -0,0 +1,4 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !subqueryInWhere --
+1956422
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/where01.out 
b/regression-test/data/yandex_metrica_p2/sql/where01.out
new file mode 100644
index 0000000000..c0d735a21b
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/where01.out
@@ -0,0 +1,3 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !where01 --
+
diff --git a/regression-test/data/yandex_metrica_p2/sql/where02.out 
b/regression-test/data/yandex_metrica_p2/sql/where02.out
new file mode 100644
index 0000000000..d1f7782855
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/sql/where02.out
@@ -0,0 +1,3 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !where02 --
+
diff --git a/regression-test/data/yandex_metrica_p2/view.out 
b/regression-test/data/yandex_metrica_p2/view.out
new file mode 100644
index 0000000000..8dddf8bdd2
--- /dev/null
+++ b/regression-test/data/yandex_metrica_p2/view.out
@@ -0,0 +1,28 @@
+-- This file is automatically generated. You should know what you did if you 
want to edit this
+-- !view_1 --
+109760
+
+-- !view_2 --
+2      23449
+1      18139
+3      9216
+4      8296
+5      5237
+6      4585
+7      3290
+8      3083
+9      2347
+10     2070
+
+-- !view_3 --
+1704509        523264
+732797 475698
+598875 337212
+792887 252197
+3807842        196036
+25703952       147211
+716829 90109
+59183  85379
+33010362       77807
+800784 77492
+
diff --git a/regression-test/suites/yandex_metrica_p2/ddl/hits.sql 
b/regression-test/suites/yandex_metrica_p2/ddl/hits.sql
new file mode 100644
index 0000000000..63a7227aab
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/ddl/hits.sql
@@ -0,0 +1,142 @@
+CREATE TABLE hits
+(
+    CounterID BIGINT,
+    EventDate DATE,
+    UserID LARGEINT,
+    WatchID LARGEINT,
+    JavaEnable SMALLINT,
+    Title STRING,
+    GoodEvent SMALLINT,
+    EventTime DATETIME,
+    ClientIP BIGINT,
+    ClientIP6 CHAR(50),
+    RegionID BIGINT,
+    CounterClass TINYINT,
+    OS SMALLINT,
+    UserAgent SMALLINT,
+    URL STRING,
+    Referer STRING,
+    URLDomain STRING,
+    RefererDomain STRING,
+    Refresh SMALLINT,
+    IsRobot SMALLINT,
+    RefererCategories STRING,
+    URLCategories STRING,
+    URLRegions STRING,
+    RefererRegions STRING,
+    ResolutionWidth INT,
+    ResolutionHeight INT,
+    ResolutionDepth SMALLINT,
+    FlashMajor SMALLINT,
+    FlashMinor SMALLINT,
+    FlashMinor2 STRING,
+    NetMajor SMALLINT,
+    NetMinor SMALLINT,
+    UserAgentMajor INT,
+    UserAgentMinor CHAR(4),
+    CookieEnable SMALLINT,
+    JavascriptEnable SMALLINT,
+    IsMobile SMALLINT,
+    MobilePhone SMALLINT,
+    MobilePhoneModel STRING,
+    Params STRING,
+    IPNetworkID BIGINT,
+    TraficSourceID TINYINT,
+    SearchEngineID INT,
+    SearchPhrase STRING,
+    AdvEngineID SMALLINT,
+    IsArtifical SMALLINT,
+    WindowClientWidth INT,
+    WindowClientHeight INT,
+    ClientTimeZone SMALLINT,
+    ClientEventTime DATETIME,
+    SilverlightVersion1 SMALLINT,
+    SilverlightVersion2 SMALLINT,
+    SilverlightVersion3 BIGINT,
+    SilverlightVersion4 INT,
+    PageCharset STRING,
+    CodeVersion BIGINT,
+    IsLink SMALLINT,
+    IsDownload SMALLINT,
+    IsNotBounce SMALLINT,
+    FUniqID LARGEINT,
+    HID BIGINT,
+    IsOldCounter SMALLINT,
+    IsEvent SMALLINT,
+    IsParameter SMALLINT,
+    DontCountHits SMALLINT,
+    WithHash SMALLINT,
+    HitColor CHAR(2),
+    UTCEventTime DATETIME,
+    Age SMALLINT,
+    Sex SMALLINT,
+    Income SMALLINT,
+    Interests INT,
+    Robotness SMALLINT,
+    GeneralInterests STRING,
+    RemoteIP BIGINT,
+    RemoteIP6 CHAR(50),
+    WindowName INT,
+    OpenerName INT,
+    HistoryLength SMALLINT,
+    BrowserLanguage CHAR(4),
+    BrowserCountry CHAR(4),
+    SocialNetwork STRING,
+    SocialAction STRING,
+    HTTPError INT,
+    SendTiming INT,
+    DNSTiming INT,
+    ConnectTiming INT,
+    ResponseStartTiming INT,
+    ResponseEndTiming INT,
+    FetchTiming INT,
+    RedirectTiming INT,
+    DOMInteractiveTiming INT,
+    DOMContentLoadedTiming INT,
+    DOMCompleteTiming INT,
+    LoadEventStartTiming INT,
+    LoadEventEndTiming INT,
+    NSToDOMContentLoadedTiming INT,
+    FirstPaintTiming INT,
+    RedirectCount TINYINT,
+    SocialSourceNetworkID SMALLINT,
+    SocialSourcePage STRING,
+    ParamPrice BIGINT,
+    ParamOrderID STRING,
+    ParamCurrency CHAR(6),
+    ParamCurrencyID INT,
+    GoalsReached STRING,
+    OpenstatServiceName STRING,
+    OpenstatCampaignID STRING,
+    OpenstatAdID STRING,
+    OpenstatSourceID STRING,
+    UTMSource STRING,
+    UTMMedium STRING,
+    UTMCampaign STRING,
+    UTMContent STRING,
+    UTMTerm STRING,
+    FromTag STRING,
+    HasGCLID SMALLINT,
+    RefererHash LARGEINT,
+    URLHash LARGEINT,
+    CLID BIGINT,
+    YCLID LARGEINT,
+    ShareService STRING,
+    ShareURL STRING,
+    ShareTitle STRING,
+    ParsedParamsKey1 STRING,
+    ParsedParamsKey2 STRING,
+    ParsedParamsKey3 STRING,
+    ParsedParamsKey4 STRING,
+    ParsedParamsKey5 STRING,
+    ParsedParamsValueDouble DOUBLE,
+    IslandID CHAR(40),
+    RequestNum BIGINT,
+    RequestTry SMALLINT
+)
+DUPLICATE KEY(CounterID, EventDate, UserID)
+DISTRIBUTED BY HASH(CounterID) BUCKETS 16
+PROPERTIES
+(
+  "replication_num" = "1"
+)
diff --git a/regression-test/suites/yandex_metrica_p2/ddl/visits.sql 
b/regression-test/suites/yandex_metrica_p2/ddl/visits.sql
new file mode 100644
index 0000000000..fe19f06462
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/ddl/visits.sql
@@ -0,0 +1,190 @@
+CREATE TABLE visits
+(
+    CounterID BIGINT,
+    StartDate DATE,
+    UserID LARGEINT,
+    VisitID LARGEINT,
+    Sign TINYINT,
+    IsNew SMALLINT,
+    StartTime DATETIME,
+    Duration BIGINT,
+    UTCStartTime DATETIME,
+    PageViews INT,
+    Hits INT,
+    IsBounce SMALLINT,
+    Referer STRING,
+    StartURL STRING,
+    RefererDomain STRING,
+    StartURLDomain STRING,
+    EndURL STRING,
+    LinkURL STRING,
+    IsDownload SMALLINT,
+    TraficSourceID TINYINT,
+    SearchEngineID INT,
+    SearchPhrase STRING,
+    AdvEngineID SMALLINT,
+    PlaceID INT,
+    RefererCategories STRING,
+    URLCategories STRING,
+    URLRegions STRING,
+    RefererRegions STRING,
+    IsYandex SMALLINT,
+    GoalReachesDepth INT,
+    GoalReachesURL INT,
+    GoalReachesAny INT,
+    SocialSourceNetworkID SMALLINT,
+    SocialSourcePage STRING,
+    MobilePhoneModel STRING,
+    ClientEventTime DATETIME,
+    RegionID BIGINT,
+    ClientIP BIGINT,
+    ClientIP6 CHAR(50),
+    RemoteIP BIGINT,
+    RemoteIP6 CHAR(50),
+    IPNetworkID BIGINT,
+    SilverlightVersion3 BIGINT,
+    CodeVersion BIGINT,
+    ResolutionWidth INT,
+    ResolutionHeight INT,
+    UserAgentMajor INT,
+    UserAgentMinor INT,
+    WindowClientWidth INT,
+    WindowClientHeight INT,
+    SilverlightVersion2 SMALLINT,
+    SilverlightVersion4 INT,
+    FlashVersion3 INT,
+    FlashVersion4 INT,
+    ClientTimeZone SMALLINT,
+    OS SMALLINT,
+    UserAgent SMALLINT,
+    ResolutionDepth SMALLINT,
+    FlashMajor SMALLINT,
+    FlashMinor SMALLINT,
+    NetMajor SMALLINT,
+    NetMinor SMALLINT,
+    MobilePhone SMALLINT,
+    SilverlightVersion1 SMALLINT,
+    Age SMALLINT,
+    Sex SMALLINT,
+    Income SMALLINT,
+    JavaEnable SMALLINT,
+    CookieEnable SMALLINT,
+    JavascriptEnable SMALLINT,
+    IsMobile SMALLINT,
+    BrowserLanguage INT,
+    BrowserCountry INT,
+    Interests INT,
+    Robotness SMALLINT,
+    GeneralInterests STRING,
+    Params STRING,
+    GoalsID STRING,
+    GoalsSerial STRING,
+    GoalsEventTime STRING,
+    GoalsPrice STRING,
+    GoalsOrderID STRING,
+    GoalsCurrencyID STRING,
+    WatchIDs STRING,
+    ParamSumPrice BIGINT,
+    ParamCurrency CHAR(10),
+    ParamCurrencyID INT,
+    ClickLogID LARGEINT,
+    ClickEventID INT,
+    ClickGoodEvent INT,
+    ClickEventTime DATETIME,
+    ClickPriorityID INT,
+    ClickPhraseID INT,
+    ClickPageID INT,
+    ClickPlaceID INT,
+    ClickTypeID INT,
+    ClickResourceID INT,
+    ClickCost BIGINT,
+    ClickClientIP BIGINT,
+    ClickDomainID BIGINT,
+    ClickURL STRING,
+    ClickAttempt SMALLINT,
+    ClickOrderID BIGINT,
+    ClickBannerID BIGINT,
+    ClickMarketCategoryID BIGINT,
+    ClickMarketPP BIGINT,
+    ClickMarketCategoryName STRING,
+    ClickMarketPPName STRING,
+    ClickAWAPSCampaignName STRING,
+    ClickPageName STRING,
+    ClickTargetType INT,
+    ClickTargetPhraseID LARGEINT,
+    ClickContextType SMALLINT,
+    ClickSelectType TINYINT,
+    ClickOptions STRING,
+    ClickGroupBannerID INT,
+    OpenstatServiceName STRING,
+    OpenstatCampaignID STRING,
+    OpenstatAdID STRING,
+    OpenstatSourceID STRING,
+    UTMSource STRING,
+    UTMMedium STRING,
+    UTMCampaign STRING,
+    UTMContent STRING,
+    UTMTerm STRING,
+    FromTag STRING,
+    HasGCLID SMALLINT,
+    FirstVisit DATETIME,
+    PredLastVisit DATE,
+    LastVisit DATE,
+    TotalVisits BIGINT,
+    TraficSourceID2 STRING,
+    TraficSourceSearchEngineID STRING,
+    TraficSourceAdvEngineID STRING,
+    TraficSourcePlaceID STRING,
+    TraficSourceSocialSourceNetworkID STRING,
+    TraficSourceDomain STRING,
+    TraficSourceSearchPhrase STRING,
+    TraficSourceSocialSourcePage STRING,
+    Attendance CHAR(50),
+    CLID BIGINT,
+    YCLID LARGEINT,
+    NormalizedRefererHash LARGEINT,
+    SearchPhraseHash LARGEINT,
+    RefererDomainHash LARGEINT,
+    NormalizedStartURLHash LARGEINT,
+    StartURLDomainHash LARGEINT,
+    NormalizedEndURLHash LARGEINT,
+    TopLevelDomain LARGEINT,
+    URLScheme LARGEINT,
+    OpenstatServiceNameHash LARGEINT,
+    OpenstatCampaignIDHash LARGEINT,
+    OpenstatAdIDHash LARGEINT,
+    OpenstatSourceIDHash LARGEINT,
+    UTMSourceHash LARGEINT,
+    UTMMediumHash LARGEINT,
+    UTMCampaignHash LARGEINT,
+    UTMContentHash LARGEINT,
+    UTMTermHash LARGEINT,
+    FromHash LARGEINT,
+    WebVisorEnabled SMALLINT,
+    WebVisorActivity BIGINT,
+    ParsedParamsKey1 STRING,
+    ParsedParamsKey2 STRING,
+    ParsedParamsKey3 STRING,
+    ParsedParamsKey4 STRING,
+    ParsedParamsKey5 STRING,
+    ParsedParamsValueDouble DOUBLE,
+    MarketType STRING,
+    MarketGoalID STRING,
+    MarketOrderID STRING,
+    MarketOrderPrice STRING,
+    MarketPP STRING,
+    MarketDirectPlaceID STRING,
+    MarketDirectOrderID STRING,
+    MarketDirectBannerID STRING,
+    MarketGoodID STRING,
+    MarketGoodName STRING,
+    MarketGoodQuantity STRING,
+    MarketGoodPrice STRING,
+    IslandID CHAR(32)
+) 
+DUPLICATE KEY(CounterID, StartDate, UserID, VisitID)
+DISTRIBUTED BY HASH(CounterID) BUCKETS 16
+PROPERTIES
+(
+  "replication_num" = "1"
+)
diff --git a/regression-test/suites/yandex_metrica_p2/load.groovy 
b/regression-test/suites/yandex_metrica_p2/load.groovy
new file mode 100644
index 0000000000..6edfa82d0b
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/load.groovy
@@ -0,0 +1,74 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// The cases is copied from https://github.com/trinodb/trino/tree/master
+// /testing/trino-product-tests/src/main/resources/sql-tests/testcases/tpcds
+// and modified by Doris.
+suite("load") {
+    def tables = ["hits", "visits"]
+    def columnsMap = [
+        
"hits":"WatchID,JavaEnable,Title,GoodEvent,EventTime,EventDate,CounterID,ClientIP,ClientIP6,RegionID,UserID,CounterClass,OS,UserAgent,URL,Referer,URLDomain,RefererDomain,Refresh,IsRobot,RefererCategories,URLCategories,URLRegions,RefererRegions,ResolutionWidth,ResolutionHeight,ResolutionDepth,FlashMajor,FlashMinor,FlashMinor2,NetMajor,NetMinor,UserAgentMajor,UserAgentMinor,CookieEnable,JavascriptEnable,IsMobile,MobilePhone,MobilePhoneModel,Params,IPNetworkID,TraficSourceID,SearchE
 [...]
+        
"visits":"CounterID,StartDate,Sign,IsNew,VisitID,UserID,StartTime,Duration,UTCStartTime,PageViews,Hits,IsBounce,Referer,StartURL,RefererDomain,StartURLDomain,EndURL,LinkURL,IsDownload,TraficSourceID,SearchEngineID,SearchPhrase,AdvEngineID,PlaceID,RefererCategories,URLCategories,URLRegions,RefererRegions,IsYandex,GoalReachesDepth,GoalReachesURL,GoalReachesAny,SocialSourceNetworkID,SocialSourcePage,MobilePhoneModel,ClientEventTime,RegionID,ClientIP,ClientIP6,RemoteIP,RemoteIP6,IPNe
 [...]
+    ]
+
+    for (String table in tables) {
+        sql """ DROP TABLE IF EXISTS $table """
+    }
+
+    for (String table in tables) {
+        sql new File("""${context.file.parent}/ddl/${table}.sql""").text
+    }
+
+    for (String tableName in tables) {
+        streamLoad {
+            // you can skip declare db, because a default db already specify 
in ${DORIS_HOME}/conf/regression-conf.groovy
+            // db 'regression_test'
+            table tableName
+
+            // default label is UUID:
+            // set 'label' UUID.randomUUID().toString()
+
+            // default column_separator is specify in doris fe config, usually 
is '\t'.
+            // this line change to ','
+            set 'column_separator', '\t'
+            set 'compress_type', 'GZ'
+            set "columns", columnsMap[tableName]
+            set 'timeout', '72000'
+
+            // relate to 
${DORIS_HOME}/regression-test/data/demo/streamload_input.csv.
+            // also, you can stream load a http stream, e.g. 
http://xxx/some.csv
+            file """${getS3Url() + '/regression/clickhouse/yandex_metrica/' + 
tableName}.tsv.gz"""
+
+            time 0
+
+            // stream load action will check result, include Success status, 
and NumberTotalRows == NumberLoadedRows
+
+            // if declared a check callback, the default check condition will 
ignore.
+            // So you must check all condition
+            check { result, exception, startTime, endTime ->
+                if (exception != null) {
+                    throw exception
+                }
+                log.info("Stream load result: ${result}".toString())
+                def json = parseJson(result)
+                assertEquals("success", json.Status.toLowerCase())
+                assertEquals(json.NumberTotalRows, json.NumberLoadedRows)
+                assertTrue(json.NumberLoadedRows > 0 && json.LoadBytes > 0)
+            }
+        }
+    }
+}
diff --git 
a/regression-test/suites/yandex_metrica_p2/sql/duplicateAggregationKeys.sql 
b/regression-test/suites/yandex_metrica_p2/sql/duplicateAggregationKeys.sql
new file mode 100644
index 0000000000..508e5446e5
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/duplicateAggregationKeys.sql
@@ -0,0 +1 @@
+SELECT URL, EventDate, max(URL) FROM hits WHERE CounterID = 1704509 AND UserID 
= 4322253409885123546 GROUP BY URL, EventDate, EventDate ORDER BY URL, EventDate
diff --git a/regression-test/suites/yandex_metrica_p2/sql/like1.sql 
b/regression-test/suites/yandex_metrica_p2/sql/like1.sql
new file mode 100644
index 0000000000..43c67e539c
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/like1.sql
@@ -0,0 +1 @@
+SELECT count() FROM hits WHERE URL LIKE '%/avtomobili_s_probegom/_%__%__%__%'
diff --git a/regression-test/suites/yandex_metrica_p2/sql/like2.sql 
b/regression-test/suites/yandex_metrica_p2/sql/like2.sql
new file mode 100644
index 0000000000..fe65d5d4d2
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/like2.sql
@@ -0,0 +1 @@
+SELECT count() FROM hits WHERE URL LIKE '/avtomobili_s_probegom/_%__%__%__%'
diff --git a/regression-test/suites/yandex_metrica_p2/sql/like3.sql 
b/regression-test/suites/yandex_metrica_p2/sql/like3.sql
new file mode 100644
index 0000000000..d20ea09e53
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/like3.sql
@@ -0,0 +1 @@
+SELECT count() FROM hits WHERE URL LIKE '%_/avtomobili_s_probegom/_%__%__%__%'
diff --git a/regression-test/suites/yandex_metrica_p2/sql/like4.sql 
b/regression-test/suites/yandex_metrica_p2/sql/like4.sql
new file mode 100644
index 0000000000..916f8ed252
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/like4.sql
@@ -0,0 +1 @@
+SELECT count() FROM hits WHERE URL LIKE '%avtomobili%'
diff --git a/regression-test/suites/yandex_metrica_p2/sql/loyalty.sql 
b/regression-test/suites/yandex_metrica_p2/sql/loyalty.sql
new file mode 100644
index 0000000000..6f2bc652ff
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/loyalty.sql
@@ -0,0 +1,13 @@
+SELECT loyalty, count() AS c
+FROM
+(
+    SELECT UserID, CAST(((if(yandex > google, yandex / (yandex + google), 0 - 
google / (yandex + google))) * 10) AS TINYINT) AS loyalty
+    FROM
+    (
+        SELECT UserID, sum(if(SearchEngineID = 2, 1, 0)) AS yandex, 
sum(if(SearchEngineID = 3, 1, 0)) AS google
+        FROM hits
+        WHERE SearchEngineID = 2 OR SearchEngineID = 3 GROUP BY UserID HAVING 
yandex + google > 10
+    ) t1
+) t2
+GROUP BY loyalty
+ORDER BY loyalty
diff --git a/regression-test/suites/yandex_metrica_p2/sql/maxStringIf.sql 
b/regression-test/suites/yandex_metrica_p2/sql/maxStringIf.sql
new file mode 100644
index 0000000000..dfafd32850
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/maxStringIf.sql
@@ -0,0 +1 @@
+SELECT CounterID, count(), max(if(SearchPhrase != "", SearchPhrase, "")) FROM 
hits GROUP BY CounterID ORDER BY count() DESC LIMIT 20
diff --git a/regression-test/suites/yandex_metrica_p2/sql/minMax.sql 
b/regression-test/suites/yandex_metrica_p2/sql/minMax.sql
new file mode 100644
index 0000000000..1d5449cbfb
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/minMax.sql
@@ -0,0 +1 @@
+SELECT CounterID, min(WatchID), max(WatchID) FROM hits GROUP BY CounterID 
ORDER BY count() DESC LIMIT 20
diff --git 
a/regression-test/suites/yandex_metrica_p2/sql/monotonicEvaluationSegfault.sql 
b/regression-test/suites/yandex_metrica_p2/sql/monotonicEvaluationSegfault.sql
new file mode 100644
index 0000000000..827b1ca902
--- /dev/null
+++ 
b/regression-test/suites/yandex_metrica_p2/sql/monotonicEvaluationSegfault.sql
@@ -0,0 +1 @@
+SELECT max(0) FROM visits WHERE (CAST(CAST(StartDate AS DATETIME) AS INT)) > 
1000000000
diff --git a/regression-test/suites/yandex_metrica_p2/sql/subqueryInWhere.sql 
b/regression-test/suites/yandex_metrica_p2/sql/subqueryInWhere.sql
new file mode 100644
index 0000000000..56f3a146ee
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/subqueryInWhere.sql
@@ -0,0 +1 @@
+SELECT count() FROM hits WHERE UserID IN (SELECT UserID FROM hits WHERE 
CounterID = 800784)
diff --git a/regression-test/suites/yandex_metrica_p2/sql/where01.sql 
b/regression-test/suites/yandex_metrica_p2/sql/where01.sql
new file mode 100644
index 0000000000..eb940ba1b1
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/where01.sql
@@ -0,0 +1 @@
+SELECT CounterID, count(distinct UserID) FROM hits WHERE 0 != 0 GROUP BY 
CounterID
diff --git a/regression-test/suites/yandex_metrica_p2/sql/where02.sql 
b/regression-test/suites/yandex_metrica_p2/sql/where02.sql
new file mode 100644
index 0000000000..e1389bb234
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/sql/where02.sql
@@ -0,0 +1 @@
+SELECT CounterID, count(distinct UserID) FROM hits WHERE CAST(0 AS BOOLEAN) 
AND CounterID = 1704509 GROUP BY CounterID
diff --git a/regression-test/suites/yandex_metrica_p2/view.groovy 
b/regression-test/suites/yandex_metrica_p2/view.groovy
new file mode 100644
index 0000000000..b56cc767a7
--- /dev/null
+++ b/regression-test/suites/yandex_metrica_p2/view.groovy
@@ -0,0 +1,45 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// The cases is copied from https://github.com/trinodb/trino/tree/master
+// /testing/trino-product-tests/src/main/resources/sql-tests/testcases/tpcds
+// and modified by Doris.
+suite("view") {
+    sql """
+        DROP VIEW IF EXISTS `yandex_view`
+    """
+
+    sql """
+        CREATE VIEW yandex_view AS SELECT CounterID, count() AS c FROM hits 
GROUP BY CounterID
+    """
+
+    qt_view_1 """
+        SELECT count() FROM yandex_view
+    """
+
+    qt_view_2 """
+        SELECT c, count() FROM yandex_view GROUP BY c ORDER BY count() DESC 
LIMIT 10
+    """
+
+    qt_view_3 """
+        SELECT * FROM yandex_view ORDER BY c DESC LIMIT 10
+    """
+
+    sql """
+        DROP VIEW IF EXISTS `yandex_view`
+    """
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to