Skip to content

Commit 67afbda

Browse files
committed
Feat: support stddev and variance function
1 parent c091b90 commit 67afbda

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

traindb-core/src/main/java/traindb/planner/rules/ApproxAggregateUtil.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ public class ApproxAggregateUtil {
3333

3434
private static final List<String> approxAggregateFuncList = Arrays.asList(
3535
"AVG",
36+
"COUNT",
37+
"STDDEV",
3638
"SUM",
37-
"COUNT"
39+
"VARIANCE"
3840
);
3941

4042
private static final List<String> scalingAggregateFuncList = Arrays.asList(
41-
"SUM",
42-
"COUNT"
43+
"COUNT",
44+
"SUM"
4345
);
4446

4547
public static boolean isApproximateAggregate(Aggregate aggregate) {

0 commit comments

Comments
 (0)