diff --git a/cpp-ch/local-engine/Parser/JoinRelParser.cpp b/cpp-ch/local-engine/Parser/JoinRelParser.cpp index 8fbaf2feca71..b217a9bd9da2 100644 --- a/cpp-ch/local-engine/Parser/JoinRelParser.cpp +++ b/cpp-ch/local-engine/Parser/JoinRelParser.cpp @@ -593,6 +593,7 @@ bool JoinRelParser::applyJoinFilter( if (!allow_mixed_condition) return false; auto mixed_join_expressions_actions = expressionsToActionsDAG({expr}, mixed_header); + mixed_join_expressions_actions.removeUnusedActions(); table_join.getMixedJoinExpression() = std::make_shared(std::move(mixed_join_expressions_actions), ExpressionActionsSettings::fromContext(context)); }