mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Remove false-positive warning
This commit is contained in:
parent
956138635d
commit
50dee3f449
@ -29,6 +29,9 @@ String MergeTreePartition::getID(const MergeTreeData & storage) const
|
||||
return getID(storage.getInMemoryMetadataPtr()->getPartitionKey().sample_block);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
|
||||
/// NOTE: This ID is used to create part names which are then persisted in ZK and as directory names on the file system.
|
||||
/// So if you want to change this method, be sure to guarantee compatibility with existing table data.
|
||||
String MergeTreePartition::getID(const Block & partition_key_sample) const
|
||||
@ -87,6 +90,8 @@ String MergeTreePartition::getID(const Block & partition_key_sample) const
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
void MergeTreePartition::serializeText(const MergeTreeData & storage, WriteBuffer & out, const FormatSettings & format_settings) const
|
||||
{
|
||||
auto metadata_snapshot = storage.getInMemoryMetadataPtr();
|
||||
|
Loading…
Reference in New Issue
Block a user