agozhiy commented on a change in pull request #1779: DRILL-7222: Visualize 
estimated and actual row counts for a query
URL: https://github.com/apache/drill/pull/1779#discussion_r310666911
 
 

 ##########
 File path: exec/java-exec/src/main/resources/rest/profile/profile.ftl
 ##########
 @@ -84,6 +84,29 @@
         document.getElementById(warningElemId).style.display="none";
     }
 
+    //Injects Estimated Rows
+    function injectEstimatedRows() {
+      Object.keys(opRowCountMap).forEach(key => {
+        var tgtElem = $("td.estRowsAnchor[key='"+key+"']"); 
+        var status = tgtElem.append( "<div class='estRows' 
title='Estimated'>("+opRowCountMap[key]+")</div>" );
+      });
+    }
+
+    //Toggle Estimates' visibility
+    function toggleEstimates(tgtColumn) {
+      var colClass = '.est'+tgtColumn
+      var estimates = $(colClass);
+      if (estimates.filter(":visible").length > 0) {
+        $(colClass).each(function(){
+          $(this).attr("style", "display:none");
+        });
+      } else {
+        $(colClass).each(function(){
 
 Review comment:
   ```suggestion
           $(colClass).each(function () {
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to