Repository: ambari Updated Branches: refs/heads/branch-2.5 a2c5addcf -> 38cf7a63d
AMBARI-19914. Hive View 2.0: Go to Table manager and click on statistics, the panel does not come up. (dipayanb) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/38cf7a63 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/38cf7a63 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/38cf7a63 Branch: refs/heads/branch-2.5 Commit: 38cf7a63dfd1e5b0f9f538ce114d8cc4b50f1acb Parents: a2c5add Author: Dipayan Bhowmick <[email protected]> Authored: Thu Feb 9 15:43:14 2017 +0530 Committer: Dipayan Bhowmick <[email protected]> Committed: Thu Feb 9 15:43:14 2017 +0530 ---------------------------------------------------------------------- .../src/main/resources/ui/app/components/table-statistics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/38cf7a63/contrib/views/hive20/src/main/resources/ui/app/components/table-statistics.js ---------------------------------------------------------------------- diff --git a/contrib/views/hive20/src/main/resources/ui/app/components/table-statistics.js b/contrib/views/hive20/src/main/resources/ui/app/components/table-statistics.js index d53a41f..1623e0e 100644 --- a/contrib/views/hive20/src/main/resources/ui/app/components/table-statistics.js +++ b/contrib/views/hive20/src/main/resources/ui/app/components/table-statistics.js @@ -28,7 +28,7 @@ export default Ember.Component.extend({ columnStatsAccurate: Ember.computed('table.tableStats.columnStatsAccurate', function () { let columnStatsJson = this.get('table.tableStats.columnStatsAccurate'); - return JSON.parse(columnStatsJson.replace(/\\\"/g, '"')); + return Ember.isEmpty(columnStatsJson) ? {} : JSON.parse(columnStatsJson.replace(/\\\"/g, '"')); }), columnsWithStatistics: Ember.computed('columnStatsAccurate', function () {
