v.20.5Improvement

Skip Empty URL Parameters in Requests

Skip empty parameters in requested URL. They may appear when you write http://localhost:8123/?&a=b or http://localhost:8123/?a=b&&c=d. This closes #10749. #11651 (alexey-milovidov).
Skip empty parameters in the requested URL when using HTTP interface queries in ClickHouse.

Why it matters

When making HTTP requests to ClickHouse with URLs containing empty parameters (e.g., http://localhost:8123/?&a=b or http://localhost:8123/?a=b&&c=d), these empty parameters may cause parsing issues or unexpected behavior. This feature automatically ignores such empty query parameters, improving robustness and reliability of URL parameter handling.

How to use it

No special configuration is required. ClickHouse now automatically skips empty parameters in the query string of HTTP requests, so users can safely include redundant ampersands or empty parameters in the URL without causing errors.