Listing all parts in log have no sense. 
Should be either silenced, either combined into a single line.
msg += ") nor partition expr is used and setting 'force_index_by_date' is set";
            throw Exception(msg, ErrorCodes::INDEX_NOT_USED);
        }
    }
    const Context & query_context = context.hasQueryContext() ? context.getQueryContext() : context;
    if (query_context.getSettingsRef().allow_experimental_query_deduplication)
        selectPartsToReadWithUUIDFilter(parts, part_values, minmax_idx_condition, partition_pruner, max_block_numbers_to_read, query_context);
    else
        selectPartsToRead(parts, part_values, minmax_idx_condition, partition_pruner, max_block_numbers_to_read);
    
    Names column_names_to_read = real_column_names;
    std::shared_ptr<ASTFunction> filter_function;
    ActionsDAGPtr filter_expression;
    RelativeSize relative_sample_size = 0;
    RelativeSize relative_sample_offset = 0;
    const auto & select = query_info.query->as<ASTSelectQuery &>();
    auto select_sample_size = select.sampleSize();
    auto select_sample_offset = select.sampleOffset();
    if (select_sample_size)
    {
        relative_sample_size.assign(
            select_sample_size->as<ASTSampleRatio &>().ratio.numerator,
            select_sample_size->as<ASTSampleRatio &>().ratio.denominator);
        if (relative_sample_size < 0)
            throw Exception("Negative sample size", ErrorCodes::ARGUMENT_OUT_OF_BOUND);
        relative_sample_offset = 0;
        if (select_sample_offset)
            relative_sample_offset.assign(
                select_sample_offset->as<ASTSampleRatio &>().ratio.numerator,
                select_sample_offset->as<ASTSampleRatio &>().ratio.denominator);