From d019474641af5b078bb932d7b1933dde0934b680 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 23 May 2020 17:51:18 +0300 Subject: [PATCH 1/8] Replace hits_1000m to hits_100m --- .../performance/agg_functions_min_max_any.xml | 186 +++++++++--------- tests/performance/columns_hashing.xml | 14 +- 2 files changed, 100 insertions(+), 100 deletions(-) diff --git a/tests/performance/agg_functions_min_max_any.xml b/tests/performance/agg_functions_min_max_any.xml index 5e817cbc5f7..c89cd05700a 100644 --- a/tests/performance/agg_functions_min_max_any.xml +++ b/tests/performance/agg_functions_min_max_any.xml @@ -3,102 +3,102 @@ - default.hits_1000m_single + hits_100m_single -select min(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000 -select max(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000 -select any(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Title) from hits_1000m_single where Title != '' group by intHash32(UserID) % 1000000 -select min(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000 -select max(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000 -select any(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000 -select anyHeavy(URL) from hits_1000m_single where URL != '' group by intHash32(UserID) % 1000000 -select min(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000 -select max(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000 -select any(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Referer) from hits_1000m_single where Referer != '' group by intHash32(UserID) % 1000000 -select min(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select max(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select any(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select anyHeavy(FlashMinor2) from hits_1000m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select min(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select max(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select any(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select anyHeavy(MobilePhoneModel) from hits_1000m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select min(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000 -select max(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000 -select any(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Params) from hits_1000m_single where Params != '' group by intHash32(UserID) % 1000000 -select min(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select max(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select any(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SearchPhrase) from hits_1000m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select min(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select max(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select any(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select anyHeavy(PageCharset) from hits_1000m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select min(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select max(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select any(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OriginalURL) from hits_1000m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select min(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select max(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select any(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialNetwork) from hits_1000m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select min(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select max(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select any(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialAction) from hits_1000m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select min(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select max(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select any(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialSourcePage) from hits_1000m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select min(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select max(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select any(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(ParamOrderID) from hits_1000m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select max(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select any(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatServiceName) from hits_1000m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select min(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatCampaignID) from hits_1000m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatAdID) from hits_1000m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatSourceID) from hits_1000m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select min(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select max(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select any(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMSource) from hits_1000m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select min(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select max(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select any(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMMedium) from hits_1000m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select min(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select max(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select any(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMCampaign) from hits_1000m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select min(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select max(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select any(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMContent) from hits_1000m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select min(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select max(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select any(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMTerm) from hits_1000m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select min(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000 -select max(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000 -select any(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000 -select anyHeavy(FromTag) from hits_1000m_single where FromTag != '' group by intHash32(UserID) % 1000000 +select min(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 +select max(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 +select any(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 +select min(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 +select max(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 +select any(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 +select anyHeavy(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 +select min(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 +select max(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 +select any(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 +select min(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select max(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select any(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select anyHeavy(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select min(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select max(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select any(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select anyHeavy(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select min(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 +select max(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 +select any(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 +select min(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select max(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select any(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select min(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 +select max(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 +select any(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 +select anyHeavy(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 +select min(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 +select max(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 +select any(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 +select min(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select max(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select any(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select min(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 +select max(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 +select any(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 +select min(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select max(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select any(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select min(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select max(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select any(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select max(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select any(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select min(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select min(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 +select max(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 +select any(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 +select min(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 +select max(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 +select any(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 +select min(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select max(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select any(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select min(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 +select max(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 +select any(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 +select min(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 +select max(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 +select any(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 +select min(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 +select max(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 +select any(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 +select anyHeavy(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 diff --git a/tests/performance/columns_hashing.xml b/tests/performance/columns_hashing.xml index 414c85c3853..7297b690ee4 100644 --- a/tests/performance/columns_hashing.xml +++ b/tests/performance/columns_hashing.xml @@ -5,7 +5,7 @@ hits_100m_single - hits_1000m_single + hits_100m_single @@ -14,19 +14,19 @@ - + - + - - + + --> - - + + From 9d1d7c61d60acf405246670bcc72275386a9da6a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 23 May 2020 17:52:32 +0300 Subject: [PATCH 2/8] Replace hits_1000m to hits_100m --- tests/performance/columns_hashing.xml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/tests/performance/columns_hashing.xml b/tests/performance/columns_hashing.xml index 7297b690ee4..186d3a8ba62 100644 --- a/tests/performance/columns_hashing.xml +++ b/tests/performance/columns_hashing.xml @@ -5,28 +5,11 @@ hits_100m_single - hits_100m_single - - - - - - + + From 2c76899f530f3204dcf068e0998847744b8152c0 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 23 May 2020 17:53:54 +0300 Subject: [PATCH 3/8] Edited strange test --- tests/performance/date_time_64.xml | 2 +- tests/performance/early_constant_folding.xml | 4 +-- tests/performance/leftpad.xml | 26 +++++++------------- tests/performance/merge_table_streams.xml | 2 +- tests/performance/nyc_taxi.xml | 2 +- tests/performance/order_by_read_in_order.xml | 2 +- tests/performance/parallel_insert.xml | 2 +- tests/performance/prewhere.xml | 2 +- tests/performance/string_join.xml | 2 +- 9 files changed, 18 insertions(+), 26 deletions(-) diff --git a/tests/performance/date_time_64.xml b/tests/performance/date_time_64.xml index a69b1910d7a..5f9c76766c2 100644 --- a/tests/performance/date_time_64.xml +++ b/tests/performance/date_time_64.xml @@ -1,7 +1,7 @@ - default.hits_100m_single + hits_100m_single CREATE TABLE dt (x DateTime) ENGINE = MergeTree ORDER BY tuple() diff --git a/tests/performance/early_constant_folding.xml b/tests/performance/early_constant_folding.xml index f6f1be8598d..aa7d540801f 100644 --- a/tests/performance/early_constant_folding.xml +++ b/tests/performance/early_constant_folding.xml @@ -3,8 +3,8 @@ - default.hits_100m_single + hits_100m_single - SELECT count(JavaEnable) FROM default.hits_100m_single WHERE WatchID = 1 OR Title = 'next' OR URL = 'prev' OR OriginalURL = '???' OR 1 + SELECT count(JavaEnable) FROM hits_100m_single WHERE WatchID = 1 OR Title = 'next' OR URL = 'prev' OR OriginalURL = '???' OR 1 diff --git a/tests/performance/leftpad.xml b/tests/performance/leftpad.xml index 3f747054122..4349c6ac0e5 100644 --- a/tests/performance/leftpad.xml +++ b/tests/performance/leftpad.xml @@ -1,22 +1,14 @@ - - - string - - - hashfile + hits_100m_single - - - - - - - - - - - + + + + + + + + diff --git a/tests/performance/merge_table_streams.xml b/tests/performance/merge_table_streams.xml index 01f0444e54c..c3484275606 100644 --- a/tests/performance/merge_table_streams.xml +++ b/tests/performance/merge_table_streams.xml @@ -19,7 +19,7 @@ CREATE TABLE merge_table_streams_3 AS hits_100m_single CREATE TABLE merge_table_streams_4 AS hits_100m_single -SELECT UserID FROM merge(default, '^(hits_100m_single|merge_table_streams_\\d)$') WHERE UserID = 12345678901234567890 +SELECT UserID FROM merge( '^(hits_100m_single|merge_table_streams_\\d)$') WHERE UserID = 12345678901234567890 DROP TABLE merge_table_streams_1 DROP TABLE merge_table_streams_2 diff --git a/tests/performance/nyc_taxi.xml b/tests/performance/nyc_taxi.xml index b7c1cf58146..b8d9621e3eb 100644 --- a/tests/performance/nyc_taxi.xml +++ b/tests/performance/nyc_taxi.xml @@ -3,7 +3,7 @@ - default.trips_mergetree + trips_mergetree SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type diff --git a/tests/performance/order_by_read_in_order.xml b/tests/performance/order_by_read_in_order.xml index 5749a49a3aa..bb3a921c862 100644 --- a/tests/performance/order_by_read_in_order.xml +++ b/tests/performance/order_by_read_in_order.xml @@ -4,7 +4,7 @@ - default.hits_100m_single + hits_100m_single SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 100 diff --git a/tests/performance/parallel_insert.xml b/tests/performance/parallel_insert.xml index 34c45e08bc0..4050e771cb8 100644 --- a/tests/performance/parallel_insert.xml +++ b/tests/performance/parallel_insert.xml @@ -1,7 +1,7 @@ - default.hits_10m_single + hits_10m_single diff --git a/tests/performance/prewhere.xml b/tests/performance/prewhere.xml index 40a12a68bb9..43ce52d8bd4 100644 --- a/tests/performance/prewhere.xml +++ b/tests/performance/prewhere.xml @@ -3,7 +3,7 @@ - default.hits_10m_single + hits_10m_single diff --git a/tests/performance/string_join.xml b/tests/performance/string_join.xml index 477f62c1327..e4f9979bc09 100644 --- a/tests/performance/string_join.xml +++ b/tests/performance/string_join.xml @@ -3,7 +3,7 @@ - default.hits_10m_single + hits_10m_single CREATE TABLE hits_10m_words (word String, UserID UInt64) ENGINE Memory From 3b29ea09c16e7054e3abf49d0b38e8ff7660a4b9 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 23 May 2020 17:56:35 +0300 Subject: [PATCH 4/8] Fix another strange test --- tests/performance/if_to_multiif.xml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tests/performance/if_to_multiif.xml b/tests/performance/if_to_multiif.xml index 88fc38d48f0..61b76bdb870 100644 --- a/tests/performance/if_to_multiif.xml +++ b/tests/performance/if_to_multiif.xml @@ -1,17 +1,8 @@ - - - - - nonexistent_table_if_multiif - - - - + - + From 17df54785e97de1d546a3610e08d438da30cbd37 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Sat, 23 May 2020 23:45:28 +0300 Subject: [PATCH 5/8] Update merge_table_streams.xml --- tests/performance/merge_table_streams.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/performance/merge_table_streams.xml b/tests/performance/merge_table_streams.xml index c3484275606..01f0444e54c 100644 --- a/tests/performance/merge_table_streams.xml +++ b/tests/performance/merge_table_streams.xml @@ -19,7 +19,7 @@ CREATE TABLE merge_table_streams_3 AS hits_100m_single CREATE TABLE merge_table_streams_4 AS hits_100m_single -SELECT UserID FROM merge( '^(hits_100m_single|merge_table_streams_\\d)$') WHERE UserID = 12345678901234567890 +SELECT UserID FROM merge(default, '^(hits_100m_single|merge_table_streams_\\d)$') WHERE UserID = 12345678901234567890 DROP TABLE merge_table_streams_1 DROP TABLE merge_table_streams_2 From a70b819ca24b0d79b3be1e299dd5e8923d7414d6 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 24 May 2020 02:33:26 +0300 Subject: [PATCH 6/8] Adapted test time --- .../performance/agg_functions_min_max_any.xml | 186 +++++++++--------- 1 file changed, 93 insertions(+), 93 deletions(-) diff --git a/tests/performance/agg_functions_min_max_any.xml b/tests/performance/agg_functions_min_max_any.xml index c89cd05700a..43bb8c823ac 100644 --- a/tests/performance/agg_functions_min_max_any.xml +++ b/tests/performance/agg_functions_min_max_any.xml @@ -3,102 +3,102 @@ - hits_100m_single + test.hits -select min(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 -select max(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 -select any(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 -select min(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 -select max(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 -select any(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 -select anyHeavy(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 -select min(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 -select max(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 -select any(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 -select min(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select max(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select any(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select anyHeavy(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select min(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select max(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select any(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select anyHeavy(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select min(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 -select max(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 -select any(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 -select min(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select max(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select any(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select min(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select max(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select any(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select anyHeavy(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 -select min(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select max(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select any(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OriginalURL) from hits_100m_single where OriginalURL != '' group by intHash32(UserID) % 1000000 -select min(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select max(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select any(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select min(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select max(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select any(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialAction) from hits_100m_single where SocialAction != '' group by intHash32(UserID) % 1000000 -select min(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select max(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select any(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select min(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select max(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select any(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select max(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select any(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select min(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select min(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select max(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select any(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 -select min(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select max(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select any(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 -select min(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select max(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select any(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select min(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select max(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select any(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 -select min(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select max(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select any(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 -select min(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 -select max(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 -select any(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 -select anyHeavy(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 +select min(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 +select max(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 +select any(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 +select min(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 +select max(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 +select any(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 +select anyHeavy(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 +select min(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 +select max(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 +select any(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 +select min(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select max(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select any(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select anyHeavy(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select min(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select max(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select any(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select anyHeavy(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select min(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 +select max(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 +select any(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 +select min(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select max(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select any(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select min(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 +select max(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 +select any(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 +select anyHeavy(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 +select min(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 +select max(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 +select any(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 +select min(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select max(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select any(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select min(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 +select max(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 +select any(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 +select min(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select max(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select any(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select min(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select max(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select any(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select max(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select any(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select min(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select min(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 +select max(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 +select any(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 +select min(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 +select max(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 +select any(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 +select min(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select max(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select any(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select min(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 +select max(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 +select any(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 +select min(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 +select max(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 +select any(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 +select min(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 +select max(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 +select any(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 +select anyHeavy(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 From 02500e4b11ddab119d683314013b557a40e1c68b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 24 May 2020 23:33:13 +0300 Subject: [PATCH 7/8] Fix long tests --- .../performance/agg_functions_min_max_any.xml | 189 +++++++++--------- 1 file changed, 92 insertions(+), 97 deletions(-) diff --git a/tests/performance/agg_functions_min_max_any.xml b/tests/performance/agg_functions_min_max_any.xml index 43bb8c823ac..4591182cdfc 100644 --- a/tests/performance/agg_functions_min_max_any.xml +++ b/tests/performance/agg_functions_min_max_any.xml @@ -1,104 +1,99 @@ - - - test.hits - -select min(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 -select max(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 -select any(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 -select min(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 -select max(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 -select any(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 -select anyHeavy(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 -select min(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 -select max(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 -select any(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 -select min(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select max(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select any(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select anyHeavy(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 -select min(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select max(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select any(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select anyHeavy(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 -select min(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 -select max(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 -select any(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 -select anyHeavy(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 -select min(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select max(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select any(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 -select min(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 -select max(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 -select any(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 -select anyHeavy(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 -select min(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 -select max(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 -select any(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 -select min(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select max(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select any(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 -select min(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 -select max(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 -select any(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 -select min(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select max(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select any(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select anyHeavy(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 -select min(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select max(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select any(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select max(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select any(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 -select min(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 -select min(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select max(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select any(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select anyHeavy(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 -select min(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 -select max(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 -select any(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 -select min(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 -select max(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 -select any(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 -select min(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select max(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select any(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 -select min(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 -select max(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 -select any(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 -select min(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 -select max(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 -select any(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 -select anyHeavy(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 -select min(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 -select max(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 -select any(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 -select anyHeavy(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 - +select min(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(Title) from test.hits where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(URL) from test.hits where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(Referer) from test.hits where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(FlashMinor2) from test.hits where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(MobilePhoneModel) from test.hits where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(Params) from test.hits where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(SearchPhrase) from test.hits where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(PageCharset) from test.hits where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(OriginalURL) from test.hits where OriginalURL != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(SocialNetwork) from test.hits where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(SocialAction) from test.hits where SocialAction != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(SocialSourcePage) from test.hits where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(ParamOrderID) from test.hits where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(OpenstatServiceName) from test.hits where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(OpenstatCampaignID) from test.hits where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(OpenstatAdID) from test.hits where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(OpenstatSourceID) from test.hits where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(UTMSource) from test.hits where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(UTMMedium) from test.hits where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(UTMCampaign) from test.hits where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(UTMContent) from test.hits where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(UTMTerm) from test.hits where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null +select min(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null +select max(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null +select any(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null +select anyHeavy(FromTag) from test.hits where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null From 8fa637cf73d5f7ae5a8eef184c67fd80461e2249 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 24 May 2020 23:35:49 +0300 Subject: [PATCH 8/8] Fix long tests, part 2 --- tests/performance/columns_hashing.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/performance/columns_hashing.xml b/tests/performance/columns_hashing.xml index 186d3a8ba62..ac3d4b1b33b 100644 --- a/tests/performance/columns_hashing.xml +++ b/tests/performance/columns_hashing.xml @@ -4,12 +4,12 @@ - hits_100m_single + test.hits - - - - - + + + + +