Visit PullRemote's input only if it has any

Reviewers: florijan, msantl

Reviewed By: msantl

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1239
This commit is contained in:
Teon Banek 2018-02-26 10:23:23 +01:00
parent a44d9a0fac
commit f1aece8352

View File

@ -2933,7 +2933,12 @@ void Union::UnionCursor::Reset() {
right_cursor_->Reset();
}
ACCEPT_WITH_INPUT(PullRemote);
bool PullRemote::Accept(HierarchicalLogicalOperatorVisitor &visitor) {
if (visitor.PreVisit(*this)) {
if (input_) input_->Accept(visitor);
}
return visitor.PostVisit(*this);
}
std::vector<Symbol> PullRemote::OutputSymbols(const SymbolTable &table) const {
return input_ ? input_->OutputSymbols(table) : std::vector<Symbol>{};