v.22.3Improvement

Do Not Retry Non-Retriable Errors When Querying Remote URLs

Do not retry non-rertiable errors when querying remote URLs. Closes #35161. #35172 (Kseniia Sumarokova).
Add behavior to avoid retrying non-retriable errors when querying remote URLs in ClickHouse.

Why it matters

To improve efficiency and reliability by preventing unnecessary retries on errors that cannot be resolved by retrying, thus reducing resource waste and query delays when accessing remote URLs.

How to use it

This feature is applied automatically in ClickHouse when querying remote URLs. No additional user configuration is required to benefit from this enhancement.