From 4017b1eb89a6e89433ab6728e4f7b90b45034d9d Mon Sep 17 00:00:00 2001 From: Anton Popov Date: Fri, 24 Sep 2021 14:08:33 +0300 Subject: [PATCH] Update src/Storages/ColumnsDescription.cpp Co-authored-by: Vladimir C --- src/Storages/ColumnsDescription.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();