Skip to content

Commit

Permalink
undo wrong fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Nov 17, 2022
1 parent 1f577c5 commit c59cd4d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/graph/validator/MatchValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,15 +560,13 @@ Status MatchValidator::validateWith(const WithClause *with,
auto label = static_cast<const LabelExpression *>(col->expr())->name();
auto found = withClauseCtx.yield->aliasesAvailable.find(label);
DCHECK(found != withClauseCtx.yield->aliasesAvailable.end());
/*if (!withClauseCtx.aliasesGenerated.emplace(col->alias(), found->second).second) {
if (!withClauseCtx.aliasesGenerated.emplace(col->alias(), found->second).second) {
return Status::SemanticError("`%s': Redefined alias", col->alias().c_str());
}*/
withClauseCtx.aliasesGenerated.emplace(col->alias(), found->second);
}
} else {
/*if (!withClauseCtx.aliasesGenerated.emplace(col->alias(), aliasType).second) {
if (!withClauseCtx.aliasesGenerated.emplace(col->alias(), aliasType).second) {
return Status::SemanticError("`%s': Redefined alias", col->alias().c_str());
}*/
withClauseCtx.aliasesGenerated.emplace(col->alias(), aliasType);
}
}

if (!withClauseCtx.yield->hasAgg_ &&
Expand Down

0 comments on commit c59cd4d

Please sign in to comment.