mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Better comment
This commit is contained in:
parent
37a1d128c9
commit
d625162fce
@ -296,7 +296,10 @@ void MergeTreeData::setProperties(const StorageInMemoryMetadata & metadata, bool
|
||||
/// Primary key not defined at all
|
||||
if (new_primary_key.definition_ast == nullptr)
|
||||
{
|
||||
/// We copy sorting key, and restore definition_ast to empty value
|
||||
/// We copy sorting key, and restore definition_ast to empty value,
|
||||
/// because in merge tree code we sometimes chech, that our primary key
|
||||
/// is fake (copied from sorting key, i.e. isPrimaryKeyDefined() ==
|
||||
/// false, but hasSortingKey() == true)
|
||||
new_primary_key = metadata.sorting_key;
|
||||
new_primary_key.definition_ast = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user