v.23.2Improvement

Improve S3 Client Region and Redirection Handling

Improve internal S3 client to correctly deduce regions and redirections for different types of URLs. #45783 (Antonio Andelic).
Improved the internal S3 client to correctly determine the AWS region and handle redirections based on different URL types.

Why it matters

This feature solves issues related to incorrect region deduction and mishandling of redirections when using various S3 URL formats. It ensures more reliable and accurate interactions with S3-compatible storage services, improving compatibility and stability.

How to use it

Users benefit from this improvement automatically when using the internal S3 client for storage operations in ClickHouse. No additional configuration is required; the client now correctly processes different S3 URL types to deduce the region and handle redirections.