mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +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)
|
||||
{
|
||||
for (auto it = data_part_storage.iterate(); it->isValid(); it->next())
|
||||
if (std::string ext = fs::path(it->name()).extension(); MarkType::isMarkFileExtension(ext))
|
||||
return MarkType(ext);
|
||||
if (data_part_storage.exists())
|
||||
for (auto it = data_part_storage.iterate(); it->isValid(); it->next())
|
||||
if (std::string ext = fs::path(it->name()).extension(); MarkType::isMarkFileExtension(ext))
|
||||
return MarkType(ext);
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user