mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Also backport fix for cyclic aliases
This commit is contained in:
parent
eb3484dfd1
commit
3afb4ab0e0
@ -650,7 +650,12 @@ struct ScopeAliases
|
|||||||
if (jt == transitive_aliases.end())
|
if (jt == transitive_aliases.end())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
key = &(getKey(jt->second, find_option));
|
const auto & new_key = getKey(jt->second, find_option);
|
||||||
|
/// Ignore potential cyclic aliases.
|
||||||
|
if (new_key == *key)
|
||||||
|
return {};
|
||||||
|
|
||||||
|
key = &new_key;
|
||||||
it = alias_map.find(*key);
|
it = alias_map.find(*key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user