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

[iotdb] branch ChangeQueryCostUnit1.1 created (now 597637e04a1)

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

jackietien pushed a change to branch ChangeQueryCostUnit1.1
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 597637e04a1 Correct slow query log's time cost precision

This branch includes the following new commits:

     new 597637e04a1 Correct slow query log's time cost precision

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: Correct slow query log's time cost precision

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch ChangeQueryCostUnit1.1
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 597637e04a1180142a4a840342d7d319c02d8688
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Tue May 30 15:26:34 2023 +0800

    Correct slow query log's time cost precision
---
 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"));
           }
         }