Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 bfb0af81c -> 4e8093fca


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/4e8093fc
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4e8093fc
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4e8093fc

Branch: refs/heads/branch-2.5
Commit: 4e8093fcab1dd00969c9497f10fccf21a356ab29
Parents: bfb0af8
Author: pallavkul <[email protected]>
Authored: Wed Feb 22 19:48:18 2017 +0530
Committer: pallavkul <[email protected]>
Committed: Wed Feb 22 19:49:39 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/4e8093fc/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/4e8093fc/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>
       `);

Reply via email to