You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ca...@apache.org on 2025/03/16 06:10:11 UTC
(iotdb) 01/01: remove calc statistics metric
This is an automated email from the ASF dual-hosted git repository.
caogaofei pushed a commit to branch optimize_count
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit ea00d63230def7056edc4aeb4e945362db24fcd6
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Sun Mar 16 14:09:50 2025 +0800
remove calc statistics metric
---
.../operator/source/relational/aggregation/TableAggregator.java | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/TableAggregator.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/TableAggregator.java
index fbbc7083127..955532cea6d 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/TableAggregator.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/TableAggregator.java
@@ -37,7 +37,6 @@ import static java.util.Objects.requireNonNull;
import static org.apache.iotdb.db.queryengine.execution.aggregation.TreeAggregator.QUERY_EXECUTION_METRICS;
import static org.apache.iotdb.db.queryengine.execution.operator.source.relational.TableScanOperator.TIME_COLUMN_TEMPLATE;
import static org.apache.iotdb.db.queryengine.metric.QueryExecutionMetricSet.AGGREGATION_FROM_RAW_DATA;
-import static org.apache.iotdb.db.queryengine.metric.QueryExecutionMetricSet.AGGREGATION_FROM_STATISTICS;
public class TableAggregator {
private final TableAccumulator accumulator;
@@ -106,13 +105,7 @@ public class TableAggregator {
}
public void processStatistics(Statistics[] statistics) {
- long startTime = System.nanoTime();
- try {
- accumulator.addStatistics(statistics);
- } finally {
- QUERY_EXECUTION_METRICS.recordExecutionCost(
- AGGREGATION_FROM_STATISTICS, System.nanoTime() - startTime);
- }
+ accumulator.addStatistics(statistics);
}
public boolean hasFinalResult() {