diff --git a/src/Storages/MergeTree/MergeTreeDataPartWide.cpp b/src/Storages/MergeTree/MergeTreeDataPartWide.cpp index b3ef45b46e5..1b0de863289 100644 --- a/src/Storages/MergeTree/MergeTreeDataPartWide.cpp +++ b/src/Storages/MergeTree/MergeTreeDataPartWide.cpp @@ -271,7 +271,8 @@ std::optional MergeTreeDataPartWide::getColumnModificationTime(const Str { try { - return getDataPartStorage().getFileLastModified(column_name + DATA_FILE_EXTENSION).epochTime(); + auto name_on_disk = checksums.getFileNameOrHash(column_name); + return getDataPartStorage().getFileLastModified(name_on_disk + DATA_FILE_EXTENSION).epochTime(); } catch (const fs::filesystem_error &) {