Преглед изворни кода

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;
     }
   });