mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix error
This commit is contained in:
parent
08b8ca234d
commit
ffb45354bd
@ -94,9 +94,10 @@ std::string MarkType::describe() const
|
|||||||
|
|
||||||
std::optional<MarkType> MergeTreeIndexGranularityInfo::getMarksTypeFromFilesystem(const IDataPartStorage & data_part_storage)
|
std::optional<MarkType> MergeTreeIndexGranularityInfo::getMarksTypeFromFilesystem(const IDataPartStorage & data_part_storage)
|
||||||
{
|
{
|
||||||
for (auto it = data_part_storage.iterate(); it->isValid(); it->next())
|
if (data_part_storage.exists())
|
||||||
if (std::string ext = fs::path(it->name()).extension(); MarkType::isMarkFileExtension(ext))
|
for (auto it = data_part_storage.iterate(); it->isValid(); it->next())
|
||||||
return MarkType(ext);
|
if (std::string ext = fs::path(it->name()).extension(); MarkType::isMarkFileExtension(ext))
|
||||||
|
return MarkType(ext);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user