From 711a2f2497311117fb2c0fb277ec0da1134562e5 Mon Sep 17 00:00:00 2001 From: Mikhail Cheshkov Date: Tue, 29 Oct 2024 01:54:17 +0200 Subject: [PATCH] fix(cubesql): Add forgotten Distinct in ast_size_outside_wrapper cost component --- rust/cubesql/cubesql/src/compile/rewrite/cost.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/cubesql/cubesql/src/compile/rewrite/cost.rs b/rust/cubesql/cubesql/src/compile/rewrite/cost.rs index 83f23e6dedef1..9ea8173724646 100644 --- a/rust/cubesql/cubesql/src/compile/rewrite/cost.rs +++ b/rust/cubesql/cubesql/src/compile/rewrite/cost.rs @@ -468,6 +468,7 @@ impl CostFunction for BestCubePlan { LogicalPlanLanguage::Union(_) => 1, LogicalPlanLanguage::Window(_) => 1, LogicalPlanLanguage::Subquery(_) => 1, + LogicalPlanLanguage::Distinct(_) => 1, _ => 0, };