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 21, 2022
1 parent 23cd9c7 commit f5b66ed
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 f5b66ed

Please sign in to comment.