Skip to content
Snippets Groups Projects
Unverified Commit e5336fed authored by jie.wang's avatar jie.wang Committed by GitHub
Browse files

fix bug in PushFilterDownGetNbrsRule (#278)


* fix bug in PushFilterDownGetNbrsRule

* wrap setOutpuVar in cloneGn

Co-authored-by: default avatardutor <440396+dutor@users.noreply.github.com>
parent 70601020
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,8 @@ Status PushFilterDownGetNbrsRule::transform(QueryContext *qctx,
OptGroupExpr *newFilterGroupExpr = nullptr;
if (remainedExpr != nullptr) {
auto newFilter = Filter::make(qctx, nullptr, pool->add(remainedExpr.release()));
newFilter->setOutputVar(filter->outputVar());
newFilter->setInputVar(filter->inputVar());
newFilterGroupExpr = OptGroupExpr::create(qctx, newFilter, groupExpr->group());
}
......@@ -129,6 +131,7 @@ GetNeighbors *PushFilterDownGetNbrsRule::cloneGetNbrs(QueryContext *qctx,
newGN->setRandom(gn->random());
newGN->setLimit(gn->limit());
newGN->setInputVar(gn->inputVar());
newGN->setOutputVar(gn->outputVar());
if (gn->vertexProps()) {
auto vertexProps = *gn->vertexProps();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment