mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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);
|
||||
if (conjunction.allowed.size() == 1 && conjunction.rejected.size() == 1
|
||||
&& WhichDataType{conjunction.rejected.front()->result_type}.isFloat())
|
||||
if (conjunction.rejected.size() == 1 && WhichDataType{conjunction.rejected.front()->result_type}.isFloat())
|
||||
return nullptr;
|
||||
|
||||
auto actions = cloneActionsForConjunction(conjunction.allowed, all_inputs);
|
||||
|
Loading…
Reference in New Issue
Block a user