mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
ActionsDAG: remove unnecessary condition
This commit is contained in:
parent
c83583e46b
commit
0e34a4fc4e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user