You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/04/29 02:39:17 UTC

[GitHub] [iotdb] qiaojialin commented on a change in pull request #3094: Only print last query details while debuging

qiaojialin commented on a change in pull request #3094:
URL: https://github.com/apache/iotdb/pull/3094#discussion_r622695676



##########
File path: server/src/main/java/org/apache/iotdb/db/query/executor/LastQueryExecutor.java
##########
@@ -189,10 +195,12 @@ public QueryDataSet execute(QueryContext context, LastQueryPlan lastQueryPlan)
           resultContainer.get(i).left = true;
           if (CACHE_ENABLED) {
             cacheAccessors.get(i).write(resultContainer.get(i).right);
-            DEBUG_LOGGER.info(
-                "[LastQueryExecutor] Update last cache for path: {} with timestamp: {}",
-                seriesPaths,
-                resultContainer.get(i).right.getTimestamp());
+            if (context.isDebug()) {

Review comment:
       ```suggestion
               if (context.isExplainSQL()) {
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org