diff --git a/tests/queries/0_stateless/00911_tautological_compare.sql b/tests/queries/0_stateless/00911_tautological_compare.sql index b477aabc025..a10aff449bb 100644 --- a/tests/queries/0_stateless/00911_tautological_compare.sql +++ b/tests/queries/0_stateless/00911_tautological_compare.sql @@ -1,4 +1,9 @@ --- TODO: Return this test after simplifying InterpreterSelectQuery +-- TODO: Tautological optimization breaks JIT expression compilation, because it can return constant result +-- for non constant columns. And then sample blocks from same ActionsDAGs can be mismatched. +-- This optimization cannot be performed on AST rewrite level, because we does not have information about types +-- and equals(tuple(NULL), tuple(NULL)) have same hash code, but should not be optimized. +-- Return this test after refactoring of InterpreterSelectQuery. + -- SELECT count() FROM system.numbers WHERE number != number; -- SELECT count() FROM system.numbers WHERE number < number; -- SELECT count() FROM system.numbers WHERE number > number;