ClickHouse/src/Storages/MergeTree/IPartMetadataManager.cpp
Alexey Milovidov fd2be1f041 Fix error
2022-09-05 07:31:29 +02:00

22 lines
515 B
C++

#include "IPartMetadataManager.h"
#include <Disks/IVolume.h>
#include <Storages/MergeTree/IMergeTreeDataPart.h>
namespace DB
{
IPartMetadataManager::IPartMetadataManager(const IMergeTreeDataPart * part_) : part(part_)
{
}
bool IPartMetadataManager::isCompressedFromFileName(const String & file_name)
{
std::string extension = fs::path(file_name).extension();
return (MarkType::isMarkFileExtension(extension) && MarkType(extension).compressed)
|| isCompressedFromIndexExtension(extension);
}
}