v.25.7Performance Improvement

Optimize the generated plan

Optimize the generated plan for correlated subqueries by removing redundant JOIN operations using equivalence classes. If there are equivalent expressions for all correlated columns, CROSS JOIN is not produced if query_plan_correlated_subqueries_use_substitution setting is enabled. #82435 (Dmitry Novik).