fix distributed join on

This commit is contained in:
chertus 2019-10-21 14:22:22 +03:00
parent c5a850240c
commit 5ef7376cbf

View File

@ -266,8 +266,7 @@ void RestoreQualifiedNamesData::visit(ASTIdentifier & identifier, ASTPtr & ast)
{
if (IdentifierSemantic::getColumnName(identifier))
{
auto opt_match = IdentifierSemantic::getMembership(identifier);
if (opt_match && *opt_match)
if (IdentifierSemantic::getMembership(identifier))
{
ast = identifier.clone();
ast->as<ASTIdentifier>()->restoreCompoundName();