diff --git a/tests/performance/jit_aggregate_functions.xml b/tests/performance/jit_aggregate_functions.xml index b1a937dfae9..3e99f6d9615 100644 --- a/tests/performance/jit_aggregate_functions.xml +++ b/tests/performance/jit_aggregate_functions.xml @@ -150,44 +150,6 @@ FORMAT Null - - SELECT - {function}(value_1), - {function}(value_2), - {function}(value_3) - FROM {table} - FORMAT Null - - - - SELECT - {function}(value_1), - {function}(value_2), - sum(toUInt256(value_3)), - {function}(value_3) - FROM {table} - FORMAT Null - - - - SELECT - {function}If(value_1, predicate), - {function}If(value_2, predicate), - {function}If(value_3, predicate) - FROM {table} - FORMAT Null - - - - SELECT - {function}If(value_1, predicate), - {function}If(value_2, predicate), - sumIf(toUInt256(value_3), predicate), - {function}If(value_3, predicate) - FROM {table} - FORMAT Null - - SELECT {function}(value_1), @@ -238,51 +200,6 @@ FORMAT Null - - SELECT - {function}(value_1), - {function}(value_2), - {function}(value_3), - {function}(value_4), - {function}(value_5) - FROM {table} - FORMAT Null - - - - SELECT - {function}(value_1), - {function}(value_2), - sum(toUInt256(value_3)), - {function}(value_3), - {function}(value_4), - {function}(value_5) - FROM {table} - FORMAT Null - - - - SELECT - {function}If(value_1, predicate), - {function}If(value_2, predicate), - {function}If(value_3, predicate), - {function}If(value_4, predicate), - {function}If(value_5, predicate) - FROM {table} - FORMAT Null - - - - SELECT - {function}If(value_1, predicate), - {function}If(value_2, predicate), - sumIf(toUInt256(value_3), predicate), - {function}If(value_3, predicate), - {function}If(value_4, predicate), - {function}If(value_5, predicate) - FROM {table} - FORMAT Null - SELECT @@ -330,48 +247,6 @@ FORMAT Null - - SELECT - {function}(WatchID), - {function}(CounterID), - {function}(ClientIP) - FROM hits_100m_single - FORMAT Null - - - - SELECT - {function}(WatchID), - {function}(CounterID), - sum(toUInt256(ClientIP)), - {function}(ClientIP) - FROM hits_100m_single - FORMAT Null - - - - SELECT - {function}(WatchID), - {function}(CounterID), - {function}(ClientIP), - {function}(IPNetworkID), - {function}(SearchEngineID) - FROM hits_100m_single - FORMAT Null - - - - SELECT - {function}(WatchID), - {function}(CounterID), - sum(toUInt256(ClientIP)), - {function}(ClientIP), - {function}(IPNetworkID), - {function}(SearchEngineID) - FROM hits_100m_single - FORMAT Null - - WITH (WatchID % 2 == 0) AS predicate SELECT @@ -422,51 +297,5 @@ FORMAT Null - - WITH (WatchID % 2 == 0) AS predicate - SELECT - {function}If(WatchID, predicate), - {function}If(CounterID, predicate), - {function}If(ClientIP, predicate) - FROM hits_100m_single - FORMAT Null - - - - WITH (WatchID % 2 == 0) AS predicate - SELECT - {function}If(WatchID, predicate), - {function}If(CounterID, predicate), - sumIf(toUInt256(ClientIP), predicate), - {function}If(ClientIP, predicate) - FROM hits_100m_single - FORMAT Null - - - - WITH (WatchID % 2 == 0) AS predicate - SELECT - {function}If(WatchID, predicate), - {function}If(CounterID, predicate), - {function}If(ClientIP, predicate), - {function}If(IPNetworkID, predicate), - {function}If(SearchEngineID, predicate) - FROM hits_100m_single - FORMAT Null - - - - WITH (WatchID % 2 == 0) AS predicate - SELECT - {function}If(WatchID, predicate), - {function}If(CounterID, predicate), - sumIf(toUInt256(ClientIP), predicate), - {function}If(ClientIP, predicate), - {function}If(IPNetworkID, predicate), - {function}If(SearchEngineID, predicate) - FROM hits_100m_single - FORMAT Null - - DROP TABLE IF EXISTS {table} diff --git a/tests/performance/jit_aggregate_functions_no_key.xml b/tests/performance/jit_aggregate_functions_no_key.xml new file mode 100644 index 00000000000..0d2577af97c --- /dev/null +++ b/tests/performance/jit_aggregate_functions_no_key.xml @@ -0,0 +1,284 @@ + + + hits_100m_single + + + + 1 + 0 + + + + CREATE TABLE jit_test_memory ( + key UInt64, + value_1 UInt64, + value_2 UInt64, + value_3 UInt64, + value_4 UInt64, + value_5 UInt64, + predicate UInt8 + ) Engine = Memory + + + + CREATE TABLE jit_test_merge_tree ( + key UInt64, + value_1 UInt64, + value_2 UInt64, + value_3 UInt64, + value_4 UInt64, + value_5 UInt64, + predicate UInt8 + ) Engine = MergeTree + ORDER BY key + + + + CREATE TABLE jit_test_merge_tree_nullable ( + key UInt64, + value_1 Nullable(UInt64), + value_2 Nullable(UInt64), + value_3 Nullable(UInt64), + value_4 Nullable(UInt64), + value_5 Nullable(UInt64), + predicate UInt8 + ) Engine = Memory + + + + CREATE TABLE jit_test_memory_nullable ( + key UInt64, + value_1 Nullable(UInt64), + value_2 Nullable(UInt64), + value_3 Nullable(UInt64), + value_4 Nullable(UInt64), + value_5 Nullable(UInt64), + predicate UInt8 + ) Engine = MergeTree + ORDER BY key + + + + + function + + sum + min + max + avg + any + anyLast + count + groupBitOr + groupBitAnd + groupBitXor + + + + + table + + jit_test_memory + jit_test_merge_tree + jit_test_memory_nullable + jit_test_merge_tree_nullable + + + + + group_scale + + 1000000 + + + + + + INSERT INTO {table} + SELECT + number % 1000000, + number, + number, + number, + number, + number, + if (number % 2 == 0, 1, 0) + FROM + system.numbers_mt + LIMIT 100000000 + + + + SELECT + {function}(value_1), + {function}(value_2), + {function}(value_3) + FROM {table} + FORMAT Null + + + + SELECT + {function}(value_1), + {function}(value_2), + sum(toUInt256(value_3)), + {function}(value_3) + FROM {table} + FORMAT Null + + + + SELECT + {function}If(value_1, predicate), + {function}If(value_2, predicate), + {function}If(value_3, predicate) + FROM {table} + FORMAT Null + + + + SELECT + {function}If(value_1, predicate), + {function}If(value_2, predicate), + sumIf(toUInt256(value_3), predicate), + {function}If(value_3, predicate) + FROM {table} + FORMAT Null + + + + SELECT + {function}(value_1), + {function}(value_2), + {function}(value_3), + {function}(value_4), + {function}(value_5) + FROM {table} + FORMAT Null + + + + SELECT + {function}(value_1), + {function}(value_2), + sum(toUInt256(value_3)), + {function}(value_3), + {function}(value_4), + {function}(value_5) + FROM {table} + FORMAT Null + + + + SELECT + {function}If(value_1, predicate), + {function}If(value_2, predicate), + {function}If(value_3, predicate), + {function}If(value_4, predicate), + {function}If(value_5, predicate) + FROM {table} + FORMAT Null + + + + SELECT + {function}If(value_1, predicate), + {function}If(value_2, predicate), + sumIf(toUInt256(value_3), predicate), + {function}If(value_3, predicate), + {function}If(value_4, predicate), + {function}If(value_5, predicate) + FROM {table} + FORMAT Null + + + + SELECT + {function}(WatchID), + {function}(CounterID), + {function}(ClientIP) + FROM hits_100m_single + FORMAT Null + + + + SELECT + {function}(WatchID), + {function}(CounterID), + sum(toUInt256(ClientIP)), + {function}(ClientIP) + FROM hits_100m_single + FORMAT Null + + + + SELECT + {function}(WatchID), + {function}(CounterID), + {function}(ClientIP), + {function}(IPNetworkID), + {function}(SearchEngineID) + FROM hits_100m_single + FORMAT Null + + + + SELECT + {function}(WatchID), + {function}(CounterID), + sum(toUInt256(ClientIP)), + {function}(ClientIP), + {function}(IPNetworkID), + {function}(SearchEngineID) + FROM hits_100m_single + FORMAT Null + + + + WITH (WatchID % 2 == 0) AS predicate + SELECT + {function}If(WatchID, predicate), + {function}If(CounterID, predicate), + {function}If(ClientIP, predicate) + FROM hits_100m_single + FORMAT Null + + + + WITH (WatchID % 2 == 0) AS predicate + SELECT + {function}If(WatchID, predicate), + {function}If(CounterID, predicate), + sumIf(toUInt256(ClientIP), predicate), + {function}If(ClientIP, predicate) + FROM hits_100m_single + FORMAT Null + + + + WITH (WatchID % 2 == 0) AS predicate + SELECT + {function}If(WatchID, predicate), + {function}If(CounterID, predicate), + {function}If(ClientIP, predicate), + {function}If(IPNetworkID, predicate), + {function}If(SearchEngineID, predicate) + FROM hits_100m_single + FORMAT Null + + + + WITH (WatchID % 2 == 0) AS predicate + SELECT + {function}If(WatchID, predicate), + {function}If(CounterID, predicate), + sumIf(toUInt256(ClientIP), predicate), + {function}If(ClientIP, predicate), + {function}If(IPNetworkID, predicate), + {function}If(SearchEngineID, predicate) + FROM hits_100m_single + FORMAT Null + + + DROP TABLE IF EXISTS {table} +