You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by mb...@apache.org on 2024/10/17 18:37:20 UTC
(calcite) branch main updated: Chore: Fix STDDEV inline comments
This is an automated email from the ASF dual-hosted git repository.
mbudiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new 780876e6d1 Chore: Fix STDDEV inline comments
780876e6d1 is described below
commit 780876e6d1a981a2d03ee031822751cbafac8783
Author: tison <wa...@gmail.com>
AuthorDate: Mon Oct 14 18:06:20 2024 +0800
Chore: Fix STDDEV inline comments
---
.../org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/main/java/org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java b/core/src/main/java/org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java
index 741164e342..864d136a4e 100644
--- a/core/src/main/java/org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java
+++ b/core/src/main/java/org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java
@@ -331,7 +331,7 @@ public class AggregateReduceFunctionsRule
return reduceStddev(oldAggRel, oldCall, true, true, newCalls,
aggCallMapping, inputExprs);
case STDDEV_SAMP:
- // replace original STDDEV_POP(x) with
+ // replace original STDDEV_SAMP(x) with
// SQRT(
// (SUM(x * x) - SUM(x) * SUM(x) / COUNT(x))
// / CASE COUNT(x) WHEN 1 THEN NULL ELSE COUNT(x) - 1 END)
@@ -344,7 +344,7 @@ public class AggregateReduceFunctionsRule
return reduceStddev(oldAggRel, oldCall, true, false, newCalls,
aggCallMapping, inputExprs);
case VAR_SAMP:
- // replace original VAR_POP(x) with
+ // replace original VAR_SAMP(x) with
// (SUM(x * x) - SUM(x) * SUM(x) / COUNT(x))
// / CASE COUNT(x) WHEN 1 THEN NULL ELSE COUNT(x) - 1 END
return reduceStddev(oldAggRel, oldCall, false, false, newCalls,