I have insert to s3 6bil rows table:
```
INSERT INTO FUNCTION
s3('https://s3.us-east-1.amazonaws.com/my-bucket/data.csv', 'DFGHJ', 'FGHJIJH, 'CSVWithNames', 'time DateTime, exchangeId UInt16, pairId UInt16, id String, price Decimal(38, 18), volume Decimal(38, 18)')
SELECT * FROM trade;
```
but it fails trying to upload part 10001 while aws s3 upload [supports](https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html) only 10k parts.

I had to export this select into CSV 600GB file on the disk and then perform successful `aws s3 cp data.csv s3://my-bucket/data.csv`

I expected Clickhouse would do it on his own successfully. 

┌─version()─┐
│ 22.1.3.7  │
└───────────┘

ScheduleFunc schedule = [pool = &getThreadPoolWriter()](auto callback)
    {
        pool->scheduleOrThrow([callback = std::move(callback), thread_group = CurrentThread::getGroup()]()
        {
            if (thread_group)
                CurrentThread::attachTo(thread_group);
            SCOPE_EXIT_SAFE(
                if (thread_group)
                    CurrentThread::detachQueryIfNotDetached();
            );
            callback();
        });
    };
    auto s3_buffer = std::make_unique<WriteBufferFromS3>(
        settings->client,
        bucket,
        metadata.remote_fs_root_path + s3_path,
        settings->s3_min_upload_part_size,
        settings->s3_max_single_part_upload_size,
        std::move(object_metadata),
        buf_size,
        std::move(schedule));
    return std::make_unique<WriteIndirectBufferFromRemoteFS<WriteBufferFromS3>>(std::move(s3_buffer), std::move(metadata), s3_path);
}
void DiskS3::createHardLink(const String & src_path, const String & dst_path)
{
    auto settings = current_settings.get();
    createHardLink(src_path, dst_path, settings->send_metadata);
}
void DiskS3::createHardLink(const String & src_path, const String & dst_path, bool send_metadata)