Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E883F200C16 for ; Thu, 9 Feb 2017 11:15:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E72D7160B50; Thu, 9 Feb 2017 10:15:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3DF58160B4C for ; Thu, 9 Feb 2017 11:15:09 +0100 (CET) Received: (qmail 59689 invoked by uid 500); 9 Feb 2017 10:15:08 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 59679 invoked by uid 99); 9 Feb 2017 10:15:08 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2017 10:15:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 56E2FDFBE6; Thu, 9 Feb 2017 10:15:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dbhowmick@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-19914. Hive View 2.0: Go to Table manager and click on statistics, the panel does not come up. (dipayanb) Date: Thu, 9 Feb 2017 10:15:08 +0000 (UTC) archived-at: Thu, 09 Feb 2017 10:15:10 -0000 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 Authored: Thu Feb 9 15:43:14 2017 +0530 Committer: Dipayan Bhowmick 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 () {