You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/02/24 14:19:31 UTC
[24/50] ambari git commit: AMBARI-20114. Hive2: Visual Explain -
Eliminate "limit -1" (pallavkul)
AMBARI-20114. Hive2: Visual Explain - Eliminate "limit -1" (pallavkul)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a6f3420e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a6f3420e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a6f3420e
Branch: refs/heads/branch-feature-AMBARI-12556
Commit: a6f3420e71d4c28a22023e7c3b009f0bc5503acc
Parents: 7cc2a20
Author: pallavkul <pa...@gmail.com>
Authored: Wed Feb 22 19:48:18 2017 +0530
Committer: pallavkul <pa...@gmail.com>
Committed: Wed Feb 22 19:48:18 2017 +0530
----------------------------------------------------------------------
.../main/resources/ui/app/utils/hive-explainer/renderer-force.js | 2 +-
.../src/main/resources/ui/app/utils/hive-explainer/renderer.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/a6f3420e/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer-force.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer-force.js b/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer-force.js
index 2dfdc86..a73d1b2 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer-force.js
+++ b/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer-force.js
@@ -144,7 +144,7 @@ function getRenderer(type) {
</div>
<div class='operator-body' style='margin-left: 10px;'>
<div>${getOperatorLabel(d)}</div>
- ${d['limit:'] ? '<div><span style="font-weight: lighter;">Limit:</span> ' + d['limit:'] + ' </div>' : ''}
+ ${(d['limit:'] && d['limit:'] > -1) ? '<div><span style="font-weight: lighter;">Limit:</span> ' + d['limit:'] + ' </div>' : ''}
</div>
</div>
`);
http://git-wip-us.apache.org/repos/asf/ambari/blob/a6f3420e/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer.js b/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer.js
index a332802..5fa5d2e 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer.js
+++ b/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer.js
@@ -133,7 +133,7 @@ function getRenderer(type) {
</div>
<div class='operator-body' style='margin-left: 10px;'>
<div>${getOperatorLabel(d)}</div>
- ${d['limit:'] ? '<div><span style="font-weight: lighter;">Limit:</span> ' + d['limit:'] + ' </div>' : ''}
+ ${(d['limit:'] && d['limit:'] > -1) ? '<div><span style="font-weight: lighter;">Limit:</span> ' + d['limit:'] + ' </div>' : ''}
</div>
</div>
`);