You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vs...@apache.org on 2017/05/09 14:38:21 UTC

ambari git commit: AMBARI-20673.For sort/partition operator, if there is only 1 reducer, display just sort rather than 'sort/partition'(Venkata Sairam)

Repository: ambari
Updated Branches:
  refs/heads/trunk 3153b9bc2 -> a92fe1b1f


AMBARI-20673.For sort/partition operator, if there is only 1 reducer, display just sort rather than 'sort/partition'(Venkata Sairam)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a92fe1b1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a92fe1b1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a92fe1b1

Branch: refs/heads/trunk
Commit: a92fe1b1f2fa07e5c5f47dd5f484a45ae64a7bbd
Parents: 3153b9b
Author: Venkata Sairam <ve...@gmail.com>
Authored: Tue May 9 20:07:46 2017 +0530
Committer: Venkata Sairam <ve...@gmail.com>
Committed: Tue May 9 20:07:46 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/utils/hive-explainer/renderer.js  | 2 +-
 .../main/resources/ui/app/utils/hive-explainer/transformer.js   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a92fe1b1/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 d0a3e0b..c09ad6b 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
@@ -134,7 +134,7 @@ export default function doRender(data, selector, onRequestDetail, draggable) {
 
 }
 function isSingleReducerAvailable(data){
-  let reducerCount = data.vertices.filter(function(item){
+  let reducerCount = data.verticesData.filter(function(item){
     return item['_vertex'].indexOf("Reducer") === 0;
   });
   if(reducerCount && reducerCount.length === 1) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/a92fe1b1/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/transformer.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/transformer.js b/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/transformer.js
index 9dbbb00..d786d0f 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/transformer.js
+++ b/contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/transformer.js
@@ -28,7 +28,7 @@ export default function doTransform(data) {
     getFetchVertex(fetch),
   ];
 
-  let edges = [];
+  let edges = [], verticesData;
   if(tez) {
     edges = getEdges(tez, vertices);
     edges = getEdgesWithCorrectedUnion(edges);
@@ -38,7 +38,7 @@ export default function doTransform(data) {
   vertices = doEnhance(vertices);
 
   vertices = getProcessedVertices(vertices, edges);
-
+  verticesData = vertices;
   const {adjustedVertices, adjustedEdges} = getAdjustedVerticesAndEdges(vertices, edges);
   vertices = adjustedVertices;
   edges = adjustedEdges;
@@ -60,6 +60,7 @@ export default function doTransform(data) {
     tree,
     nodes,
     connections,
+    verticesData
   });
 }