mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
fix build
This commit is contained in:
parent
71935b96ef
commit
6ee9191203
@ -9,13 +9,9 @@ IPartMetadataManager::IPartMetadataManager(const IMergeTreeDataPart * part_) : p
|
||||
{
|
||||
}
|
||||
|
||||
bool IPartMetadataManager::isCompressFromFileName(const String & file_name) const
|
||||
bool IPartMetadataManager::isCompressFromFileName(const String & file_name)
|
||||
{
|
||||
const auto & extension = fs::path(file_name).extension();
|
||||
if (isCompressFromMrkExtension(extension)
|
||||
|| isCompressFromIndexExtension(extension))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return isCompressFromMrkExtension(extension) || isCompressFromIndexExtension(extension);
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
virtual std::unordered_map<String, uint128> check() const = 0;
|
||||
|
||||
/// Determine whether to compress by file extension
|
||||
bool isCompressFromFileName(const String & file_name) const;
|
||||
static bool isCompressFromFileName(const String & file_name);
|
||||
|
||||
protected:
|
||||
const IMergeTreeDataPart * part;
|
||||
|
Loading…
Reference in New Issue
Block a user