mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Comments.
This commit is contained in:
parent
b1886e1272
commit
986d490435
@ -280,6 +280,7 @@ void ActionsVisitor::visit(const ASTPtr & ast)
|
||||
throw Exception("Column " + getColumnName() + " is not under aggregate function and not in GROUP BY.",
|
||||
ErrorCodes::NOT_AN_AGGREGATE);
|
||||
|
||||
/// Special check for WITH statement alias. Add alias action to be able to use this alias.
|
||||
if (identifier->prefer_alias_to_column_name && !identifier->alias.empty())
|
||||
actions_stack.addAction(ExpressionAction::addAliases({{identifier->name, identifier->alias}}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user