From 5ef7376cbf7a74437f3d316793a2dd45e1c31046 Mon Sep 17 00:00:00 2001 From: chertus Date: Mon, 21 Oct 2019 14:22:22 +0300 Subject: [PATCH] fix distributed join on --- dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();