Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Nov 23, 2022
1 parent 167dcd6 commit 3be9ca3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/graph/planner/plan/PlanNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ void PlanNode::setOutputVar(const std::string& var, const std::vector<std::strin
DCHECK(outputVarPtr != nullptr);
auto oldVar = outputVar_->name;
outputVar_ = outputVarPtr;
setColNames(colNames);
if (colNames.empty() && !outputVar_->colNames.empty()) {
setColNames(outputVar_->colNames);
} else {
setColNames(colNames);
}
qctx_->symTable()->updateWrittenBy(oldVar, var, this);
}

Expand Down

0 comments on commit 3be9ca3

Please sign in to comment.