Skip to content

Commit

Permalink
Filter should keep column names. (#4825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shylock-Hg authored Nov 7, 2022
1 parent 63a63ac commit e96774e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graph/optimizer/rule/PushFilterDownProjectRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ StatusOr<OptRule::TransformResult> PushFilterDownProjectRule::transform(
auto* newBelowFilterNode = graph::Filter::make(
octx->qctx(), const_cast<graph::PlanNode*>(oldProjNode->dep()), newFilterPicked);
newBelowFilterNode->setInputVar(oldProjNode->inputVar());
// Filter should keep column names
newBelowFilterNode->setColNames(oldProjNode->inputVars()[0]->colNames);
auto newBelowFilterGroup = OptGroup::create(octx);
auto newFilterGroupNode = newBelowFilterGroup->makeGroupNode(newBelowFilterNode);
for (auto dep : projGroupNode->dependencies()) {
Expand Down

0 comments on commit e96774e

Please sign in to comment.