DRILL-1678: Add fragment and operator id to label in plan visualizer
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/b5d5148b Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/b5d5148b Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/b5d5148b Branch: refs/heads/master Commit: b5d5148b5e49b7b52927f84edf6901be0892bea1 Parents: 25fca62 Author: Steven Phillips <[email protected]> Authored: Wed Oct 29 01:53:41 2014 -0700 Committer: Jacques Nadeau <[email protected]> Committed: Tue Nov 11 16:48:44 2014 -0800 ---------------------------------------------------------------------- exec/java-exec/src/main/resources/rest/www/graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/b5d5148b/exec/java-exec/src/main/resources/rest/www/graph.js ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/resources/rest/www/graph.js b/exec/java-exec/src/main/resources/rest/www/graph.js index 55ca7f4..2d38e63 100644 --- a/exec/java-exec/src/main/resources/rest/www/graph.js +++ b/exec/java-exec/src/main/resources/rest/www/graph.js @@ -102,7 +102,7 @@ $(window).load(function () { // nodes for (var i = 0; i < ps.length; i++) { g.addNode(ps[i][0], { - label: ps[i][2], + label: ps[i][2] + " " + ps[i][0], fragment: parseInt(ps[i][0].split("-")[0]) }); } @@ -138,7 +138,7 @@ $(window).load(function () { svgNodes.each(function(u) { var fc = d3.rgb(globalconfig.majorcolorscale(graph.node(u).fragment)); d3.select(this).select("rect") - .style("fill", graph.node(u).label.endsWith("Exchange") ? "white" : fc) + .style("fill", graph.node(u).label.split(" ")[0].endsWith("Exchange") ? "white" : fc) .style("stroke", "#000") .style("stroke-width", "1px") });
