Skip to content

Commit

Permalink
pass aliases from unwind to project.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Dec 12, 2022
1 parent cc0ce34 commit 05b570c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/graph/validator/MatchValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ Status MatchValidator::buildColumnsForAllNamedAliases(const std::vector<QueryPar
case CypherClauseKind::kUnwind: {
auto unwindCtx = static_cast<const UnwindClauseContext *>(boundary.get());
columns->addColumn(makeColumn(unwindCtx->alias), true);
for (auto &passAlias : prevQueryPart.aliasesAvailable) {
columns->addColumn(makeColumn(passAlias.first), true);
}
for (auto &passAlias : prevQueryPart.aliasesGenerated) {
columns->addColumn(makeColumn(passAlias.first), true);
}
break;
}
case CypherClauseKind::kWith: {
Expand Down

0 comments on commit 05b570c

Please sign in to comment.