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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]