>From Ali Alsuliman <[email protected]>: Attention is currently required from: Ian Maxon. Ali Alsuliman has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19809 )
Change subject: [ASTERIXDB-3611][RT] Add more stats to query profile ...................................................................... Patch Set 1: (1 comment) File hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/prettyprint/LogicalOperatorPrettyPrintVisitorJson.java: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19809/comment/fbc3b69c_e6f98ee6 PS1, Line 283: private static class WeightedAvg AI is suggesting this: private static class WeightedAvg { private long totalCard = 0; private double weightedSum = 0.0; private double avg = 0.0; public void update(double val, long card) { weightedSum += val * card; totalCard += card; avg = totalCard > 0 ? weightedSum / totalCard : 0.0; } public double getAvg() { return avg; } } -- To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19809 To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Change-Id: I524cbfb1685ad3c7ed269c2db48482e5aba1ce61 Gerrit-Change-Number: 19809 Gerrit-PatchSet: 1 Gerrit-Owner: Ian Maxon <[email protected]> Gerrit-Reviewer: Ali Alsuliman <[email protected]> Gerrit-Reviewer: Anon. E. Moose #1000171 Gerrit-Reviewer: Ian Maxon <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Attention: Ian Maxon <[email protected]> Gerrit-Comment-Date: Fri, 27 Jun 2025 22:51:08 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment
