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 2023/04/20 06:48:58 UTC

[iotdb] branch for_tsbs updated: comment recordParseCost method in class PerformanceOverviewMetrics; channge string.format to string.valueof in class QueryId

This is an automated email from the ASF dual-hosted git repository.

caogaofei pushed a commit to branch for_tsbs
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/for_tsbs by this push:
     new dfa7ca0066 comment recordParseCost method in class PerformanceOverviewMetrics; channge string.format to string.valueof in class QueryId
dfa7ca0066 is described below

commit dfa7ca0066715cf2a13dd21f7fb5cff853143f9b
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Thu Apr 20 14:48:38 2023 +0800

    comment recordParseCost method in class PerformanceOverviewMetrics; channge string.format to string.valueof in class QueryId
---
 .../iotdb/commons/service/metric/enums/PerformanceOverviewMetrics.java  | 2 +-
 server/src/main/java/org/apache/iotdb/db/mpp/common/QueryId.java        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/node-commons/src/main/java/org/apache/iotdb/commons/service/metric/enums/PerformanceOverviewMetrics.java b/node-commons/src/main/java/org/apache/iotdb/commons/service/metric/enums/PerformanceOverviewMetrics.java
index 9bb589bc0a..3114539e14 100644
--- a/node-commons/src/main/java/org/apache/iotdb/commons/service/metric/enums/PerformanceOverviewMetrics.java
+++ b/node-commons/src/main/java/org/apache/iotdb/commons/service/metric/enums/PerformanceOverviewMetrics.java
@@ -83,7 +83,7 @@ public class PerformanceOverviewMetrics implements IMetricSet {
 
   /** Record the time cost in parse stage. */
   public void recordParseCost(long costTimeInNanos) {
-    //parseTimer.updateNanos(costTimeInNanos);
+    // parseTimer.updateNanos(costTimeInNanos);
   }
 
   /** Record the time cost in analyze stage. */
diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/common/QueryId.java b/server/src/main/java/org/apache/iotdb/db/mpp/common/QueryId.java
index be9462696f..2208e00672 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/common/QueryId.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/common/QueryId.java
@@ -52,7 +52,7 @@ public class QueryId {
   }
 
   public PlanNodeId genPlanNodeId() {
-    return new PlanNodeId(String.format("%d", nextPlanNodeIndex++));
+    return new PlanNodeId(String.valueOf(nextPlanNodeIndex++));
   }
 
   public PlanFragmentId genPlanFragmentId() {