Keep old actions

This commit is contained in:
Nikolai Kochetov 2023-12-14 13:04:47 +00:00
parent 87a2cbb9fb
commit 8c2fa32a5a
2 changed files with 4 additions and 3 deletions

View File

@ -615,10 +615,10 @@ JoinClausesAndActions buildJoinClausesAndActions(//const ColumnsWithTypeAndName
} }
} }
result.left_join_expressions_actions = std::move(left_join_actions); result.left_join_expressions_actions = left_join_actions->clone();
result.left_join_expressions_actions->removeUnusedActions(join_left_actions_names); result.left_join_expressions_actions->removeUnusedActions(join_left_actions_names);
result.right_join_expressions_actions = std::move(right_join_actions); result.right_join_expressions_actions = right_join_actions->clone();
result.right_join_expressions_actions->removeUnusedActions(join_right_actions_names); result.right_join_expressions_actions->removeUnusedActions(join_right_actions_names);
return result; return result;

View File

@ -165,7 +165,8 @@ struct JoinClausesAndActions
/// Join clauses. Actions dag nodes point into join_expression_actions. /// Join clauses. Actions dag nodes point into join_expression_actions.
JoinClauses join_clauses; JoinClauses join_clauses;
/// Whole JOIN ON section expressions /// Whole JOIN ON section expressions
//ActionsDAGPtr join_expression_actions; ActionsDAGPtr left_join_tmp_expression_actions;
ActionsDAGPtr right_join_tmp_expression_actions;
/// Left join expressions actions /// Left join expressions actions
ActionsDAGPtr left_join_expressions_actions; ActionsDAGPtr left_join_expressions_actions;
/// Right join expressions actions /// Right join expressions actions