diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.cpp b/dbms/src/Storages/MergeTree/MergeTreeData.cpp index 4f8c8d67afd..4ff85ec803e 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeData.cpp +++ b/dbms/src/Storages/MergeTree/MergeTreeData.cpp @@ -212,7 +212,7 @@ std::optional MergeTreeData::IndexGranularityInfo::getMrkExtensionF if (startsWith(table_it.name(), "tmp")) continue; - if (table_it.path().isDirectory()) + if (Poco::File(table_it.path()).isDirectory()) { for (Poco::DirectoryIterator part_it(table_it.path()); part_it != end; ++part_it) {