diff --git a/src/Storages/MergeTree/MergeTreePartition.cpp b/src/Storages/MergeTree/MergeTreePartition.cpp index 4a846f63b7c..8ef3e458871 100644 --- a/src/Storages/MergeTree/MergeTreePartition.cpp +++ b/src/Storages/MergeTree/MergeTreePartition.cpp @@ -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();