ygerzhedovich commented on a change in pull request #9704:
URL: https://github.com/apache/ignite/pull/9704#discussion_r780961021



##########
File path: 
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/H2QueryInfo.java
##########
@@ -106,22 +119,24 @@ public long time() {
      * @param additionalInfo Additional query info.
      */
     public void printLogMessage(IgniteLogger log, String msg, String 
additionalInfo) {
-        StringBuilder msgSb = new StringBuilder(msg + " [");
-
-        if (additionalInfo != null)
-            msgSb.append(additionalInfo).append(", ");
-
-        msgSb.append("duration=").append(time()).append("ms")
-            .append(", type=").append(type)
-            .append(", distributedJoin=").append(distributedJoin)
-            .append(", enforceJoinOrder=").append(enforceJoinOrder)
-            .append(", lazy=").append(lazy)
-            .append(", schema=").append(schema);
+        StringBuilder msgSb = new StringBuilder(msg);
 
-        msgSb.append(", sql='")
-            .append(sql);
+        if (queryId == RunningQueryManager.UNDEFINED_QUERY_ID)
+            msgSb.append(" [globalQueryId=(undefined), node=").append(nodeId);
+        else
+            msgSb.append(" 
[globalQueryId=").append(QueryUtils.globalQueryId(nodeId, queryId));

Review comment:
       let's change signature of QueryUtils.globalQueryId(nodeId, qruId) from 
Long for qryId to primitive




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


Reply via email to