Bläddra i källkod

HUE-1722 [impala] Scrolling below initial 100 records shows NULLs as blank values

Loop over cell values to ensure that each null value is represented as the string NULL.
Abraham Elmahrek 12 år sedan
förälder
incheckning
773c595c05
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      apps/beeswax/src/beeswax/templates/watch_results.mako

+ 9 - 0
apps/beeswax/src/beeswax/templates/watch_results.mako

@@ -285,6 +285,15 @@ $(document).ready(function () {
         fixedHeader: true,
         firstColumnTooltip: true
       });
+    },
+    "fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
+      // Make sure null values are seen as NULL.
+      for(var j = 0; j < aData.length; ++j) {
+        if (aData[j] == null) {
+          $(nRow).find('td:eq('+j+')').html("NULL");
+        }
+      }
+      return nRow;
     }
   });