diff --git a/dbms/src/Parsers/ParserOptimizeQuery.cpp b/dbms/src/Parsers/ParserOptimizeQuery.cpp index f749b316794..56e28876133 100644 --- a/dbms/src/Parsers/ParserOptimizeQuery.cpp +++ b/dbms/src/Parsers/ParserOptimizeQuery.cpp @@ -58,8 +58,8 @@ bool ParserOptimizeQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expecte auto query = std::make_shared(); node = query; - getIdentifierName(database, query->database); - getIdentifierName(table, query->table); + tryGetIdentifierNameInto(database, query->database); + tryGetIdentifierNameInto(table, query->table); query->cluster = cluster_str; query->partition = partition;