This commit is contained in:
Yarik Briukhovetskyi 2024-11-20 13:45:23 +01:00 committed by GitHub
parent bbeb3f61e5
commit e0fb20f6d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,7 @@ void QueryAliasesMatcher<T>::visitOther(const ASTPtr & ast, Data & data)
throw Exception(wrongAliasMessage(ast, aliases[alias], alias), ErrorCodes::MULTIPLE_EXPRESSIONS_FOR_ALIAS);
}
aliases[ast->getColumnNameWithoutAlias()] = ast;
aliases[alias] = ast;
}
/** QueryAliasesVisitor is executed before ExecuteScalarSubqueriesVisitor.