ActionsDAG: remove unnecessary condition

This commit is contained in:
Salvatore Mesoraca 2023-02-23 18:28:55 +01:00
parent c83583e46b
commit 0e34a4fc4e
No known key found for this signature in database
GPG Key ID: 0567E50A25403074

View File

@ -1943,8 +1943,7 @@ ActionsDAGPtr ActionsDAG::cloneActionsForFilterPushDown(
} }
auto conjunction = getConjunctionNodes(predicate, allowed_nodes); auto conjunction = getConjunctionNodes(predicate, allowed_nodes);
if (conjunction.allowed.size() == 1 && conjunction.rejected.size() == 1 if (conjunction.rejected.size() == 1 && WhichDataType{conjunction.rejected.front()->result_type}.isFloat())
&& WhichDataType{conjunction.rejected.front()->result_type}.isFloat())
return nullptr; return nullptr;
auto actions = cloneActionsForConjunction(conjunction.allowed, all_inputs); auto actions = cloneActionsForConjunction(conjunction.allowed, all_inputs);