You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2023/05/30 08:45:47 UTC

[iotdb] branch rel/1.1 updated: Correct slow query log's time cost precision (#9983)

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

xingtanzjr pushed a commit to branch rel/1.1
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.1 by this push:
     new 4e5d5e361f0 Correct slow query log's time cost precision (#9983)
4e5d5e361f0 is described below

commit 4e5d5e361f03362e8c05e12ffdaedbd011ab56c7
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Tue May 30 16:45:38 2023 +0800

    Correct slow query log's time cost precision (#9983)
---
 server/src/main/java/org/apache/iotdb/db/mpp/plan/Coordinator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/Coordinator.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/Coordinator.java
index 7d00263ff5a..98a4b77c9b3 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/Coordinator.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/Coordinator.java
@@ -220,7 +220,7 @@ public class Coordinator {
           if (costTime / 1_000_000 >= CONFIG.getSlowQueryThreshold()) {
             SLOW_SQL_LOGGER.info(
                 "Cost: {} ms, sql is {}",
-                costTime,
+                costTime / 1_000_000,
                 queryExecution.getExecuteSQL().orElse("UNKNOWN"));
           }
         }