mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
update code style
This commit is contained in:
parent
61123b7f54
commit
1a8568473c
@ -546,9 +546,9 @@ std::vector<TableNeededColumns> normalizeColumnNamesExtractNeeded(
|
|||||||
{
|
{
|
||||||
auto alias = aliases.find(ident->name())->second;
|
auto alias = aliases.find(ident->name())->second;
|
||||||
auto alias_ident = alias->clone();
|
auto alias_ident = alias->clone();
|
||||||
if ( alias_ident->as<ASTIdentifier>())
|
if (auto * alias_ident_typed = alias_ident->as<ASTIdentifier>())
|
||||||
{
|
{
|
||||||
alias_ident->as<ASTIdentifier>()->restoreTable();
|
alias_ident_typed->restoreTable();
|
||||||
bool alias_equals_column_name = alias_ident->getColumnNameWithoutAlias() == ident->getColumnNameWithoutAlias();
|
bool alias_equals_column_name = alias_ident->getColumnNameWithoutAlias() == ident->getColumnNameWithoutAlias();
|
||||||
if (!alias_equals_column_name)
|
if (!alias_equals_column_name)
|
||||||
throw Exception("Alias clashes with qualified column '" + ident->name() + "'", ErrorCodes::AMBIGUOUS_COLUMN_NAME);
|
throw Exception("Alias clashes with qualified column '" + ident->name() + "'", ErrorCodes::AMBIGUOUS_COLUMN_NAME);
|
||||||
|
Loading…
Reference in New Issue
Block a user