ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [14/22] ambari git commit: AMBARI-20673.For sort/partition operator, if there is only 1 reducer, display just sort rather than 'sort/partition'(Venkata Sairam)
Date Wed, 10 May 2017 13:37:37 GMT
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/branch-feature-AMBARI-12556
Commit: a92fe1b1f2fa07e5c5f47dd5f484a45ae64a7bbd
Parents: 3153b9b
Author: Venkata Sairam <venkatasairam.lanka@gmail.com>
Authored: Tue May 9 20:07:46 2017 +0530
Committer: Venkata Sairam <venkatasairam.lanka@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
   });
 }
 


Mime
View raw message