diff --git a/dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp b/dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp index 549b1c0c1e6..df0946f098a 100644 --- a/dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp +++ b/dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp @@ -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()->restoreCompoundName();