v.23.2Performance Improvement
Remove Redundant DISTINCT Clauses in Query Optimization
Remove redundant DISTINCT clauses in query (subqueries). Implemented on top of query plan. It does similar optimization asoptimize_duplicate_order_by_and_distinctregarding DISTINCT clauses. Can be enabled viaquery_plan_remove_redundant_distinctsetting. Related to #42648. #44176 (Igor Nikonov).