diff --git a/src/Storages/StorageFile.cpp b/src/Storages/StorageFile.cpp index f6ce93b0688..2eb07d77e1b 100644 --- a/src/Storages/StorageFile.cpp +++ b/src/Storages/StorageFile.cpp @@ -620,7 +620,7 @@ public: const Settings & settings = context->getSettingsRef(); chassert(!storage->paths.empty()); - const auto max_parsing_threads = std::max(settings.max_threads / storage->paths.size(), 1UL); + const auto max_parsing_threads = std::max(settings.max_threads / storage->paths.size(), 1ULL); auto format = context->getInputFormat(storage->format_name, *read_buf, block_for_format, max_block_size, storage->format_settings, max_parsing_threads);