Update some tests

This commit is contained in:
Alexey Milovidov 2024-07-25 19:35:21 +02:00
parent 1059c7b76e
commit 6725546b31
3 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,6 @@
-- Tags: long, no-tsan, no-asan, no-ubsan, no-msan, no-debug
CREATE TABLE window_funtion_threading
CREATE TABLE window_function_threading
Engine = MergeTree
ORDER BY (ac, nw)
AS SELECT
@ -20,7 +20,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
GROUP BY ac, nw
)
GROUP BY nw
@ -40,7 +40,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
GROUP BY ac, nw
)
GROUP BY nw
@ -58,7 +58,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
GROUP BY ac, nw
)
GROUP BY nw
@ -66,6 +66,8 @@ ORDER BY nw ASC, R DESC
LIMIT 10
SETTINGS max_threads = 1;
SET max_rows_to_read = 30000000;
SELECT
nw,
sum(WR) AS R,
@ -77,7 +79,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
WHERE (ac % 4) = 0
GROUP BY
ac,
@ -88,7 +90,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
WHERE (ac % 4) = 1
GROUP BY
ac,
@ -99,7 +101,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
WHERE (ac % 4) = 2
GROUP BY
ac,
@ -110,7 +112,7 @@ FROM
AVG(wg) AS WR,
ac,
nw
FROM window_funtion_threading
FROM window_function_threading
WHERE (ac % 4) = 3
GROUP BY
ac,

View File

@ -1,2 +1,2 @@
49999983751397 10000032
49999983751397 10000032
7999995751397 4000032
7999995751397 4000032

View File

@ -11,7 +11,7 @@ AS
toDateTime('1990-03-21 13:00:00') + INTERVAL number MINUTE AS begin,
number % 4 AS key,
number AS value
FROM numbers(0, 10000000);
FROM numbers(0, 4000000);
CREATE TABLE skewed_probe ENGINE = MergeTree ORDER BY (key, begin)
AS
@ -33,7 +33,7 @@ AS
SELECT
toDateTime('1990-03-21 13:00:01') + INTERVAL number MINUTE AS begin,
3 AS key
FROM numbers(0, 10000000);
FROM numbers(0, 4000000);
SELECT SUM(value), COUNT(*)