v.23.5Improvement

Fix Parameterized Views for Multiple Query Parameter Usage

Fix parameterized views when a query parameter is used multiple times in the query. #49556 (Azat Khuzhin).
Fixes the handling of parameterized views when a query parameter is used multiple times within a query in ClickHouse.

Why it matters

This feature resolves an issue where parameterized views failed or behaved incorrectly if the same query parameter appeared multiple times. It ensures reliable and consistent parameter substitution, improving the correctness and usability of parameterized views.

How to use it

Use parameterized views as usual by defining query parameters; now you can safely use the same parameter multiple times in a query without errors or inconsistent behavior.