Skip to content

Commit

Permalink
Swap order of StddevSamp and VarSamp in pattern matching for aggregat…
Browse files Browse the repository at this point in the history
…e functions

Signed-off-by: Shanicky Chen <[email protected]>
  • Loading branch information
shanicky committed Nov 20, 2024
1 parent e00013d commit 454b4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/plan_node/logical_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(),
Expand Down

0 comments on commit 454b4a7

Please sign in to comment.