Update src/Storages/MergeTree/MergeTreePrefetchedReadPool.cpp

This commit is contained in:
Nikita Taranov 2023-05-18 15:16:47 +02:00 committed by GitHub
parent 0dd67bacf2
commit 971cc092d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,9 +366,6 @@ MergeTreePrefetchedReadPool::PartsInfos MergeTreePrefetchedReadPool::getPartsInf
part_info->column_name_set = {required_column_names.begin(), required_column_names.end()};
part_info->task_columns = task_columns;
if (settings.prefetch_buffer_size < DBMS_DEFAULT_BUFFER_SIZE)
throw Exception(ErrorCodes::LOGICAL_ERROR, "remove me");
/// adjustBufferSize(), which is done in MergeTreeReaderStream and MergeTreeReaderCompact,
/// lowers buffer size if file size (or required read range) is less. So we know that the
/// settings.prefetch_buffer_size will be lowered there, therefore we account it here as well.