Skip to content

Commit

Permalink
Fix use after free (ydb-platform#11239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hor911 authored Nov 4, 2024
1 parent 88a3da0 commit f12f073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/core/kqp/opt/kqp_query_plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,10 +1458,10 @@ class TxPlanSerializer {
op.Properties["Name"] = name;
op.Properties["Condition"] = MakeJoinConditionString(join.LeftKeysColumnNames(), join.RightKeysColumnNames());

auto operatorId = AddOperator(planNode, name, std::move(op));

AddOptimizerEstimates(op, join);

auto operatorId = AddOperator(planNode, name, std::move(op));

Visit(flatMap, planNode);

return operatorId;
Expand Down

0 comments on commit f12f073

Please sign in to comment.