From 0e34a4fc4ed225d568b297a15b6f7edf7873ad40 Mon Sep 17 00:00:00 2001 From: Salvatore Mesoraca Date: Thu, 23 Feb 2023 18:28:55 +0100 Subject: [PATCH] ActionsDAG: remove unnecessary condition --- src/Interpreters/ActionsDAG.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Interpreters/ActionsDAG.cpp b/src/Interpreters/ActionsDAG.cpp index 623ead29921..d3eb87161a1 100644 --- a/src/Interpreters/ActionsDAG.cpp +++ b/src/Interpreters/ActionsDAG.cpp @@ -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);