From a64272e376d67431c7f1c057b56b04bf10c59967 Mon Sep 17 00:00:00 2001 From: Mikhail Cheshkov Date: Thu, 16 Jan 2025 20:02:20 +0300 Subject: [PATCH] fix(cubesql): Add forgotten Distinct in ast_size_outside_wrapper cost component (#8882) --- 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 c5069560e6b7a..383a01a357622 100644 --- a/rust/cubesql/cubesql/src/compile/rewrite/cost.rs +++ b/rust/cubesql/cubesql/src/compile/rewrite/cost.rs @@ -495,6 +495,7 @@ impl CostFunction for BestCubePlan { LogicalPlanLanguage::Union(_) => 1, LogicalPlanLanguage::Window(_) => 1, LogicalPlanLanguage::Subquery(_) => 1, + LogicalPlanLanguage::Distinct(_) => 1, _ => 0, };