dh-cloud commented on code in PR #8780:
URL: https://github.com/apache/incubator-doris/pull/8780#discussion_r843682204
##########
fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java:
##########
@@ -549,12 +551,21 @@ public String getRemoteIp() {
row.add(getMysqlChannel().getRemoteHostPortString());
row.add(clusterName);
row.add(ClusterNamespace.getNameFromFullName(currentDb));
+ row.add(queryDetail.getQueryId());
row.add(command.toString());
+ row.add(fromLongToDate(startTime));
row.add("" + (nowMs - startTime) / 1000);
row.add("");
- row.add("");
+ String stmt = executor == null ? "" :
executor.getOriginStmtInString();
Review Comment:
we can view current sql already running time, can use the query_id to find
log , for locate the perform problem, like postgresql: select * from
pg_stat_activity
--
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]