This commit is contained in:
Artem Zuikov 2020-06-04 20:00:15 +03:00
parent 24ee7346a9
commit f18debb108

View File

@ -1,9 +1,11 @@
set optimize_arithmetic_operations_in_agr_func = 1;
set optimize_ast_arithmetic = 1;
SELECT sum(number * -3) + min(2 * number * -3) - max(-1 * -2 * number * -3) FROM numbers(10000000);
SELECT max(log(2) * number) FROM numbers(10000000);
SELECT round(max(log(2) * 3 * sin(0.3) * number * 4)) FROM numbers(10000000);
set optimize_arithmetic_operations_in_agr_func = 0;
set optimize_ast_arithmetic = 0;
SELECT sum(number * -3) + min(2 * number * -3) - max(-1 * -2 * number * -3) FROM numbers(10000000);
SELECT max(log(2) * number) FROM numbers(10000000);
SELECT round(max(log(2) * 3 * sin(0.3) * number * 4)) FROM numbers(10000000);