فهرست منبع

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 سال پیش
والد
کامیت
773c595
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;
     }
   });