Add test from #10613 for enable_optimize_predicate_expression

This commit is contained in:
Azat Khuzhin 2020-05-02 01:32:57 +03:00
parent 6d40c1ea2c
commit f19c619dfe

View File

@ -36,4 +36,11 @@ FROM (
SET enable_debug_queries = 1;
ANALYZE SELECT * FROM system.one HAVING dummy > 0 AND dummy < 0;
-- from #10613
SELECT name, count() AS cnt
FROM remote('127.{1,2}', system.settings)
GROUP BY name
HAVING (max(value) > '9') AND (min(changed) = 0)
FORMAT Null;
DROP TABLE perf;