You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/11/15 03:04:24 UTC

[GitHub] [incubator-doris] EmmyMiao87 commented on a change in pull request #7105: [BUG] fix profile not working with sql_cache enabled

EmmyMiao87 commented on a change in pull request #7105:
URL: https://github.com/apache/incubator-doris/pull/7105#discussion_r748141166



##########
File path: fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
##########
@@ -749,9 +749,13 @@ private void handleCacheStmt(CacheAnalyzer cacheAnalyzer, MysqlChannel channel,
         InternalService.PFetchCacheResult cacheResult = cacheAnalyzer.getCacheData();
         CacheMode mode = cacheAnalyzer.getCacheMode();
         SelectStmt newSelectStmt = selectStmt;
+
+        coord = new Coordinator(context, analyzer, planner);
         boolean isSendFields = false;
         if (cacheResult != null) {
             isCached = true;
+            // Initialize coordinator, for query profile
+            coord.prepare();

Review comment:
       It's better to prepare query profile only instead of whole coord.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org