diff --git a/src/frontend/src/optimizer/plan_node/logical_agg.rs b/src/frontend/src/optimizer/plan_node/logical_agg.rs index f6df21dae150b..5a146c37398a4 100644 --- a/src/frontend/src/optimizer/plan_node/logical_agg.rs +++ b/src/frontend/src/optimizer/plan_node/logical_agg.rs @@ -732,7 +732,7 @@ impl LogicalAggBuilder { PbAggKind::VarPop | PbAggKind::StddevPop => { ExprImpl::from(FunctionCall::new(ExprType::Equal, vec![count, zero])?) } - PbAggKind::StddevSamp | PbAggKind::VarSamp => ExprImpl::from( + PbAggKind::VarSamp | PbAggKind::StddevSamp => ExprImpl::from( FunctionCall::new(ExprType::LessThanOrEqual, vec![count, one])?, ), _ => unreachable!(),