Adds an option to disable parallel replicas JOINs when using CTEs (Common Table Expressions) in ClickHouse.
Why it matters
This feature addresses issues that arise when performing JOIN operations involving parallel replicas and CTEs. Disabling parallel replicas JOIN with CTE helps avoid potential inconsistencies or unexpected behavior during query execution.How to use it
Users can disable parallel replicas JOIN with CTE by setting the appropriate session or query-level setting (details provided in the PR). This allows better control over query execution behavior when using CTEs with replicated tables.