Repository: ambari Updated Branches: refs/heads/trunk 170497e92 -> e6dcc0920
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/e6dcc092 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e6dcc092 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e6dcc092 Branch: refs/heads/trunk Commit: e6dcc0920b053f6b294323575f2c28982af4e943 Parents: 170497e Author: Dipayan Bhowmick <[email protected]> Authored: Thu Feb 9 15:43:14 2017 +0530 Committer: Dipayan Bhowmick <[email protected]> Committed: Thu Feb 9 15:44:01 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/e6dcc092/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 () {
