浏览代码

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 年之前
父节点
当前提交
773c595c05
共有 1 个文件被更改,包括 9 次插入0 次删除
  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;
     }
   });