-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-13298][Core][UI]Escape "label" to avoid DAG being broken by some special character #11309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @andrewor14 |
|
LGTM |
|
retest this please |
| import scala.collection.mutable | ||
| import scala.collection.mutable.{ListBuffer, StringBuilder} | ||
|
|
||
| import org.apache.commons.lang.StringEscapeUtils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use anything from commons.lang; use commons.lang3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, we should add a style-checker rule to ban the commons.lang import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the import
|
retest this please |
1 similar comment
|
retest this please |
|
Test build #51691 has finished for PR 11309 at commit
|
|
Merged into master and 1.6. |
…ome special character ## What changes were proposed in this pull request? When there are some special characters (e.g., `"`, `\`) in `label`, DAG will be broken. This patch just escapes `label` to avoid DAG being broken by some special characters ## How was the this patch tested? Jenkins tests Author: Shixiong Zhu <[email protected]> Closes #11309 from zsxwing/SPARK-13298. (cherry picked from commit a11b399) Signed-off-by: Andrew Or <[email protected]>
|
Test build #51698 has finished for PR 11309 at commit
|
When generating Graphviz DOT files in the SQL query visualization we need to escape double-quotes inside node labels. This is a followup to apache#11309, which fixed a similar graph in Spark Core's DAG visualization. Author: Josh Rosen <[email protected]> Closes apache#11587 from JoshRosen/graphviz-escaping.
When generating Graphviz DOT files in the SQL query visualization we need to escape double-quotes inside node labels. This is a followup to #11309, which fixed a similar graph in Spark Core's DAG visualization. Author: Josh Rosen <[email protected]> Closes #11587 from JoshRosen/graphviz-escaping. (cherry picked from commit 81f54ac) Signed-off-by: Josh Rosen <[email protected]>
When generating Graphviz DOT files in the SQL query visualization we need to escape double-quotes inside node labels. This is a followup to apache#11309, which fixed a similar graph in Spark Core's DAG visualization. Author: Josh Rosen <[email protected]> Closes apache#11587 from JoshRosen/graphviz-escaping.
What changes were proposed in this pull request?
When there are some special characters (e.g.,
",\) inlabel, DAG will be broken. This patch just escapeslabelto avoid DAG being broken by some special charactersHow was the this patch tested?
Jenkins tests