mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
Only copy comment if it's not empty
This commit is contained in:
parent
836169af18
commit
6d431184a8
@ -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<ASTLiteral>(Field(as_storage_metadata->comment));
|
||||
|
||||
/// Secondary indices and projections make sense only for MergeTree family of storage engines.
|
||||
|
Loading…
Reference in New Issue
Block a user