alex-plekhanov commented on code in PR #11848:
URL: https://github.com/apache/ignite/pull/11848#discussion_r1945179335


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/query/running/SqlPlanHistoryTracker.java:
##########
@@ -57,10 +58,34 @@ public Map<SqlPlan, Long> sqlPlanHistory() {
         return Collections.unmodifiableMap(sqlPlanHistory);
     }
 
+    /** */
+    public boolean enabled() {
+        return sqlPlanHistory != EMPTY_MAP;
+    }
+
     /**
      * @param histSize History size.
      */
     public void setHistorySize(int histSize) {
         sqlPlanHistory = (histSize > 0) ? new 
GridBoundedConcurrentLinkedHashMap<>(histSize) : Collections.emptyMap();
     }
+
+    /**
+     * @param plan SQL plan.
+     *
+     * @return SQL plan without the scanCount suffix.
+     */
+    public String planWithoutScanCount(String plan) {

Review Comment:
   Let's move this part to H2QueryInfo and add comment about reason.



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to