From 6d431184a87514eac72b8c71199bc33cf5d85149 Mon Sep 17 00:00:00 2001 From: Pablo Marcos Date: Tue, 2 Apr 2024 17:25:42 +0200 Subject: [PATCH] Only copy comment if it's not empty --- src/Interpreters/InterpreterCreateQuery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/InterpreterCreateQuery.cpp b/src/Interpreters/InterpreterCreateQuery.cpp index 75208a501ca..c27d610474c 100644 --- a/src/Interpreters/InterpreterCreateQuery.cpp +++ b/src/Interpreters/InterpreterCreateQuery.cpp @@ -785,7 +785,7 @@ InterpreterCreateQuery::TableProperties InterpreterCreateQuery::getTableProperti auto as_storage_metadata = as_storage->getInMemoryMetadataPtr(); properties.columns = as_storage_metadata->getColumns(); - if (!create.comment) + if (!create.comment && !as_storage_metadata->comment.empty()) create.comment = std::make_shared(Field(as_storage_metadata->comment)); /// Secondary indices and projections make sense only for MergeTree family of storage engines.