Merge pull request #11158 from ClickHouse/normalize-performance-tests-2

Normalize performance tests 2
This commit is contained in:
alexey-milovidov 2020-05-25 03:49:58 +03:00 committed by GitHub
commit a55a8ba69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 118 additions and 157 deletions

View File

@ -1,104 +1,99 @@
<test> <test>
<preconditions> <preconditions>
<table_exists>default.hits_1000m_single</table_exists> <table_exists>test.hits</table_exists>
</preconditions> </preconditions>
<query>select min(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000</query> <query>select max(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000</query> <query>select any(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000</query> <query>select min(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000</query> <query>select max(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000</query> <query>select any(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000</query> <query>select min(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000</query> <query>select max(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000</query> <query>select any(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000</query> <query>select min(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000</query> <query>select max(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000</query> <query>select any(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000</query> <query>select min(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000</query> <query>select max(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000</query> <query>select any(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000</query> <query>select min(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000</query> <query>select max(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000</query> <query>select any(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000</query> <query>select min(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000</query> <query>select max(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000</query> <query>select any(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000</query> <query>select min(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000</query> <query>select max(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000</query> <query>select any(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000</query> <query>select min(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000</query> <query>select max(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000</query> <query>select any(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000</query> <query>select min(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000</query> <query>select max(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000</query> <query>select any(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000</query> <query>select min(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000</query> <query>select max(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000</query> <query>select any(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000</query> <query>select min(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000</query> <query>select max(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000</query> <query>select any(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000</query> <query>select min(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000</query> <query>select max(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000</query> <query>select any(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000</query> <query>select min(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000</query> <query>select max(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000</query> <query>select any(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000</query> <query>select min(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000</query> <query>select max(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000</query> <query>select any(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000</query> <query>select min(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000</query> <query>select max(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000</query> <query>select any(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000</query> <query>select min(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000</query> <query>select max(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000</query> <query>select any(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000</query> <query>select min(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000</query> <query>select max(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000</query> <query>select any(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000</query> <query>select min(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000</query> <query>select max(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000</query> <query>select any(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000</query> <query>select min(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000</query> <query>select max(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000</query> <query>select any(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000</query> <query>select min(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000</query> <query>select max(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000</query> <query>select any(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000</query> <query>select min(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000</query> <query>select max(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000</query> <query>select any(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000</query> <query>select min(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select min(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000</query> <query>select max(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select max(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000</query> <query>select any(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select any(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000</query> <query>select anyHeavy(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
<query>select anyHeavy(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000</query>
</test> </test>

View File

@ -4,29 +4,12 @@
</tags> </tags>
<preconditions> <preconditions>
<table_exists>hits_100m_single</table_exists> <table_exists>test.hits</table_exists>
<table_exists>hits_1000m_single</table_exists>
</preconditions> </preconditions>
<query><![CDATA[select sum(UserID + 1 in (select UserID from test.hits)) from test.hits]]></query>
<query><![CDATA[select sum((UserID + 1, RegionID) in (select UserID, RegionID from test.hits)) from test.hits]]></query>
<!-- <query><![CDATA[select sum(URL in (select URL from test.hits where URL != '')) from test.hits]]></query>
<query><![CDATA[select count() from hits_100m_single any left join hits_100m_single using (UserID, RegionID)]]></query> <query><![CDATA[select sum(MobilePhoneModel in (select MobilePhoneModel from test.hits where MobilePhoneModel != '')) from test.hits]]></query>
<query><![CDATA[select count() from hits_100m_single any left join hits_100m_single using UserID]]></query> <query><![CDATA[select sum((MobilePhoneModel, UserID + 1) in (select MobilePhoneModel, UserID from test.hits where MobilePhoneModel != '')) from test.hits]]></query>
<query><![CDATA[select count() from hits_100m_single any left join hits_100m_single using URL where URL != '']]></query>
<query><![CDATA[select count() from hits_1000m_single any left join hits_1000m_single using MobilePhoneModel where MobilePhoneModel != '']]></query>
<query><![CDATA[select count() from hits_100m_single any left join hits_100m_single using (MobilePhoneModel, UserID) where MobilePhoneModel != '']]></query>
<query><![CDATA[select count() from (select count() from hits_1000m_single group by UserID)]]></query>
<query><![CDATA[select count() from (select count() from hits_100m_single group by (UserID, RegionID))]]></query>
<query><![CDATA[select count() from (select count() from hits_100m_single where URL != '' group by URL)]]></query>
<query><![CDATA[select count() from (select count() from hits_1000m_single where MobilePhoneModel != '' group by MobilePhoneModel)]]></query>
<query><![CDATA[select count() from (select count() from hits_1000m_single where MobilePhoneModel != '' group by (MobilePhoneModel, UserID))]]></query>
-->
<query><![CDATA[select sum(UserID + 1 in (select UserID from hits_100m_single)) from hits_100m_single]]></query>
<query><![CDATA[select sum((UserID + 1, RegionID) in (select UserID, RegionID from hits_100m_single)) from hits_100m_single]]></query>
<query><![CDATA[select sum(URL in (select URL from hits_100m_single where URL != '')) from hits_100m_single]]></query>
<query><![CDATA[select sum(MobilePhoneModel in (select MobilePhoneModel from hits_1000m_single where MobilePhoneModel != '')) from hits_1000m_single]]></query>
<query><![CDATA[select sum((MobilePhoneModel, UserID + 1) in (select MobilePhoneModel, UserID from hits_1000m_single where MobilePhoneModel != '')) from hits_1000m_single]]></query>
</test> </test>

View File

@ -1,7 +1,7 @@
<test> <test>
<preconditions> <preconditions>
<table_exists>default.hits_100m_single</table_exists> <table_exists>hits_100m_single</table_exists>
</preconditions> </preconditions>
<create_query>CREATE TABLE dt (x DateTime) ENGINE = MergeTree ORDER BY tuple()</create_query> <create_query>CREATE TABLE dt (x DateTime) ENGINE = MergeTree ORDER BY tuple()</create_query>

View File

@ -3,8 +3,8 @@
<preconditions> <preconditions>
<table_exists>default.hits_100m_single</table_exists> <table_exists>hits_100m_single</table_exists>
</preconditions> </preconditions>
<query>SELECT count(JavaEnable) FROM default.hits_100m_single WHERE WatchID = 1 OR Title = 'next' OR URL = 'prev' OR OriginalURL = '???' OR 1</query> <query>SELECT count(JavaEnable) FROM hits_100m_single WHERE WatchID = 1 OR Title = 'next' OR URL = 'prev' OR OriginalURL = '???' OR 1</query>
</test> </test>

View File

@ -1,17 +1,8 @@
<test> <test>
<preconditions>
<!-- sum() does not work for String values, need to investigate what
this test meant. Disable for now. -->
<table_exists>nonexistent_table_if_multiif</table_exists>
</preconditions>
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : 3)) FROM numbers(1000000) ]]></query> <query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : 3)) FROM numbers(1000000) ]]></query>
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? '1' : (x < 5 ? '2' : '3')) FROM numbers(1000000) ]]></query> <query><![CDATA[ WITH number AS x SELECT any(x < 1 ? '1' : (x < 5 ? '2' : '3')) FROM numbers(1000000) ]]></query>
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : (x < 10 ? 3 : (x % 2 ? 4 : 5)))) FROM numbers(1000000) ]]></query> <query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : (x < 10 ? 3 : (x % 2 ? 4 : 5)))) FROM numbers(1000000) ]]></query>
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? '1' : (x < 5 ? '2' : (x < 10 ? '3' : (x % 2 ? '4' : '5')))) FROM numbers(1000000) ]]></query> <query><![CDATA[ WITH number AS x SELECT any(x < 1 ? '1' : (x < 5 ? '2' : (x < 10 ? '3' : (x % 2 ? '4' : '5')))) FROM numbers(1000000) ]]></query>
<query><![CDATA[ <query><![CDATA[
WITH number AS x, x = 1 ? 1 : (x = 2 ? 2 : (x = 3 ? 3 : (x = 4 ? 4 : (x = 5 ? 5 : (x = 6 ? 6 : (x = 7 ? 7 : (x = 8 ? 8 : (x = 9 ? 9 : (x = 10 ? 10 : (x = 11 ? 11 : (x = 12 ? 12 : (x = 13 ? 13 : (x = 14 ? 14 : (x = 15 ? 15 : (x = 16 ? 16 : (x = 17 ? 17 : (x = 18 ? 18 : (x = 19 ? 19 : 20)))))))))))))))))) AS res SELECT sum(res) FROM numbers(1000000) WITH number AS x, x = 1 ? 1 : (x = 2 ? 2 : (x = 3 ? 3 : (x = 4 ? 4 : (x = 5 ? 5 : (x = 6 ? 6 : (x = 7 ? 7 : (x = 8 ? 8 : (x = 9 ? 9 : (x = 10 ? 10 : (x = 11 ? 11 : (x = 12 ? 12 : (x = 13 ? 13 : (x = 14 ? 14 : (x = 15 ? 15 : (x = 16 ? 16 : (x = 17 ? 17 : (x = 18 ? 18 : (x = 19 ? 19 : 20)))))))))))))))))) AS res SELECT sum(res) FROM numbers(1000000)
]]></query> ]]></query>

View File

@ -1,22 +1,14 @@
<test> <test>
<tags>
<tag>string</tag>
</tags>
<preconditions> <preconditions>
<table_exists>hashfile</table_exists> <table_exists>hits_100m_single</table_exists>
</preconditions> </preconditions>
<query><![CDATA[SELECT max(length(MobilePhoneModel)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(Params)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(Title)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(MobilePhoneModel)) FROM hashfile]]></query> <query><![CDATA[SELECT max(length(URLDomain)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(Params)) FROM hashfile]]></query> <query><![CDATA[SELECT max(length(PageCharset)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(Title)) FROM hashfile]]></query> <query><![CDATA[SELECT max(length(Referer)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(URLDomain)) FROM hashfile]]></query> <query><![CDATA[SELECT max(length(URL)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(PageCharset)) FROM hashfile]]></query> <query><![CDATA[SELECT max(length(UTMSource)) FROM hits_100m_single]]></query>
<query><![CDATA[SELECT max(length(Referer)) FROM hashfile]]></query>
<query><![CDATA[SELECT max(length(URL)) FROM hashfile]]></query>
<query><![CDATA[SELECT max(length(UTMSource)) FROM hashfile]]></query>
</test> </test>

View File

@ -3,7 +3,7 @@
<preconditions> <preconditions>
<table_exists>default.trips_mergetree</table_exists> <table_exists>trips_mergetree</table_exists>
</preconditions> </preconditions>
<query>SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type</query> <query>SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type</query>

View File

@ -4,7 +4,7 @@
<preconditions> <preconditions>
<table_exists>default.hits_100m_single</table_exists> <table_exists>hits_100m_single</table_exists>
</preconditions> </preconditions>
<query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 100</query> <query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 100</query>

View File

@ -1,7 +1,7 @@
<test> <test>
<preconditions> <preconditions>
<table_exists>default.hits_10m_single</table_exists> <table_exists>hits_10m_single</table_exists>
</preconditions> </preconditions>
<create_query> <create_query>

View File

@ -3,7 +3,7 @@
<preconditions> <preconditions>
<table_exists>default.hits_10m_single</table_exists> <table_exists>hits_10m_single</table_exists>
</preconditions> </preconditions>
<settings> <settings>

View File

@ -3,7 +3,7 @@
<preconditions> <preconditions>
<table_exists>default.hits_10m_single</table_exists> <table_exists>hits_10m_single</table_exists>
</preconditions> </preconditions>
<create_query>CREATE TABLE hits_10m_words (word String, UserID UInt64) ENGINE Memory</create_query> <create_query>CREATE TABLE hits_10m_words (word String, UserID UInt64) ENGINE Memory</create_query>