mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Update src/Analyzer/Passes/QueryAnalysisPass.cpp
Co-authored-by: Dmitry Novik <n0vik@clickhouse.com>
This commit is contained in:
parent
51afec4910
commit
a21377cf51
@ -638,7 +638,10 @@ struct ScopeAliases
|
||||
|
||||
auto it = alias_map.find(*key);
|
||||
|
||||
if (it == alias_map.end() && lookup.lookup_context == IdentifierLookupContext::TABLE_EXPRESSION)
|
||||
if (it != alias_map.end())
|
||||
return &it->second;
|
||||
|
||||
if (lookup.lookup_context == IdentifierLookupContext::TABLE_EXPRESSION)
|
||||
return {};
|
||||
|
||||
while (it == alias_map.end())
|
||||
|
Loading…
Reference in New Issue
Block a user