diff options
author | Andrew Or <andrew@databricks.com> | 2015-06-09 15:44:02 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-06-09 15:44:02 -0700 |
commit | 0d5892dc723d203e7d892d3beacbaa97aedb1a24 (patch) | |
tree | 7859dc23fe466119c3a761b34fdcaf4086df8324 /core/src/main/resources/org | |
parent | 490d5a72ec1e5105f030fd7110acf62534e05f5a (diff) | |
download | spark-0d5892dc723d203e7d892d3beacbaa97aedb1a24.tar.gz spark-0d5892dc723d203e7d892d3beacbaa97aedb1a24.tar.bz2 spark-0d5892dc723d203e7d892d3beacbaa97aedb1a24.zip |
[MINOR] [UI] DAG visualization: trim whitespace from input
Just as a safeguard against DOM rewriting.
Author: Andrew Or <andrew@databricks.com>
Closes #6732 from andrewor14/dag-viz-trim and squashes the following commits:
7e9bacb [Andrew Or] [MINOR] [UI] DAG visualization: trim whitespace from input
Diffstat (limited to 'core/src/main/resources/org')
-rw-r--r-- | core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js b/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js index e96af8768d..7a0dec2a3e 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js +++ b/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js @@ -235,7 +235,7 @@ function renderDagVizForJob(svgContainer) { // them separately later. Note that we cannot draw them now because we need to // put these edges in a separate container that is on top of all stage graphs. metadata.selectAll(".incoming-edge").each(function(v) { - var edge = d3.select(this).text().split(","); // e.g. 3,4 => [3, 4] + var edge = d3.select(this).text().trim().split(","); // e.g. 3,4 => [3, 4] crossStageEdges.push(edge); }); }); |