Merge pull request #58076 from CurtizJ/fix-test-02567

Fix flaky test `02567_and_consistency`
This commit is contained in:
Alexey Milovidov 2023-12-20 23:50:20 +01:00 committed by GitHub
commit 10a9ed0253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ FROM
)
GROUP BY number
HAVING 1 AND sin(sum(number))
ORDER BY ALL
SETTINGS enable_optimize_predicate_expression = 0;
SELECT '=====';
@ -16,6 +17,7 @@ FROM
)
GROUP BY number
HAVING 1 AND sin(1)
ORDER BY ALL
SETTINGS enable_optimize_predicate_expression = 0;
SELECT '=====';
@ -27,6 +29,7 @@ FROM
)
GROUP BY number
HAVING x AND sin(sum(number))
ORDER BY ALL
SETTINGS enable_optimize_predicate_expression = 1;
SELECT '=====';
@ -38,6 +41,7 @@ FROM
)
GROUP BY number
HAVING 1 AND sin(sum(number))
ORDER BY ALL
SETTINGS enable_optimize_predicate_expression = 0;
SELECT '=====';
@ -57,6 +61,7 @@ FROM
)
GROUP BY number
HAVING 1 AND sin(sum(number))
ORDER BY ALL
SETTINGS enable_optimize_predicate_expression = 1;
select '#45440';
@ -72,12 +77,16 @@ SELECT
NOT h,
h IS NULL
FROM t2 AS left
GROUP BY g;
select '=';
GROUP BY g
ORDER BY g DESC;
SELECT '=';
SELECT MAX(left.c0), min2(left.c0, -(-left.c0) * (radians(left.c0) - radians(left.c0))) as g, (((-1925024212 IS NOT NULL) IS NOT NULL) != radians(tan(1216286224))) AND cos(lcm(MAX(left.c0), -1966575216) OR (MAX(left.c0) * 1180517420)) as h, not h, h is null
FROM t2 AS left
GROUP BY g HAVING h ORDER BY g DESC SETTINGS enable_optimize_predicate_expression = 0;
select '=';
SELECT '=';
SELECT MAX(left.c0), min2(left.c0, -(-left.c0) * (radians(left.c0) - radians(left.c0))) as g, (((-1925024212 IS NOT NULL) IS NOT NULL) != radians(tan(1216286224))) AND cos(lcm(MAX(left.c0), -1966575216) OR (MAX(left.c0) * 1180517420)) as h, not h, h is null
FROM t2 AS left
GROUP BY g HAVING h ORDER BY g DESC SETTINGS enable_optimize_predicate_expression = 1;