Skip to content

Commit 0d5892d

Browse files
author
Andrew Or
committed
[MINOR] [UI] DAG visualization: trim whitespace from input
Just as a safeguard against DOM rewriting. Author: Andrew Or <[email protected]> Closes apache#6732 from andrewor14/dag-viz-trim and squashes the following commits: 7e9bacb [Andrew Or] [MINOR] [UI] DAG visualization: trim whitespace from input
1 parent 490d5a7 commit 0d5892d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function renderDagVizForJob(svgContainer) {
235235
// them separately later. Note that we cannot draw them now because we need to
236236
// put these edges in a separate container that is on top of all stage graphs.
237237
metadata.selectAll(".incoming-edge").each(function(v) {
238-
var edge = d3.select(this).text().split(","); // e.g. 3,4 => [3, 4]
238+
var edge = d3.select(this).text().trim().split(","); // e.g. 3,4 => [3, 4]
239239
crossStageEdges.push(edge);
240240
});
241241
});

0 commit comments

Comments
 (0)