Browse Source

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 years ago
parent
commit
773c595c05
1 changed files with 9 additions and 0 deletions
  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;
     }
   });