mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +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();
|
const auto & extension = fs::path(file_name).extension();
|
||||||
if (isCompressFromMrkExtension(extension)
|
return isCompressFromMrkExtension(extension) || isCompressFromIndexExtension(extension);
|
||||||
|| isCompressFromIndexExtension(extension))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ public:
|
|||||||
virtual std::unordered_map<String, uint128> check() const = 0;
|
virtual std::unordered_map<String, uint128> check() const = 0;
|
||||||
|
|
||||||
/// Determine whether to compress by file extension
|
/// Determine whether to compress by file extension
|
||||||
bool isCompressFromFileName(const String & file_name) const;
|
static bool isCompressFromFileName(const String & file_name);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const IMergeTreeDataPart * part;
|
const IMergeTreeDataPart * part;
|
||||||
|
Loading…
Reference in New Issue
Block a user