Update src/Storages/ColumnsDescription.cpp

Co-authored-by: Vladimir C <vdimir@clickhouse.com>
This commit is contained in:
Anton Popov 2021-09-24 14:08:33 +03:00 committed by GitHub
parent 0390035963
commit 4017b1eb89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();