v.21.6Improvement

Increase max_uri_size to 1 MiB by default

Increase max_uri_size (the maximum size of URL in HTTP interface) to 1 MiB by default. This closes #21197. #22997 (alexey-milovidov).
Increase max_uri_size (the maximum allowed size of URL in the HTTP interface) to 1 MiB by default.

Why it matters

This change addresses the limitation on the maximum URL size accepted by the ClickHouse HTTP interface, allowing users to send larger HTTP requests without encountering errors. It improves compatibility with applications that require long query strings or large parameter data within URLs.

How to use it

The feature is enabled by default in the new version with max_uri_size set to 1 MiB. Users can adjust this setting in the server configuration if needed using the max_uri_size parameter.