diff --git a/src/Storages/ColumnsDescription.cpp b/src/Storages/ColumnsDescription.cpp index 4cc1f9cb553..568257b4fd7 100644 --- a/src/Storages/ColumnsDescription.cpp +++ b/src/Storages/ColumnsDescription.cpp @@ -203,11 +203,10 @@ void ColumnsDescription::add(ColumnDescription column, const String & after_colu ErrorCodes::ILLEGAL_COLUMN); /// Normalize ASTs to be compatible with InterpreterCreateQuery. - FunctionNameNormalizer normalizer; if (column.default_desc.expression) - normalizer.visit(column.default_desc.expression.get()); + FunctionNameNormalizer::visit(column.default_desc.expression.get()); if (column.ttl) - normalizer.visit(column.ttl.get()); + FunctionNameNormalizer::visit(column.ttl.get()); auto insert_it = columns.cend();