Skip to content

Commit 9d1f4d6

Browse files
979969786Andrew Or
authored andcommitted
[SPARK-8145] [WEBUI] Trigger a double click on the span to show full job description.
When using the Spark SQL, Jobs tab and Stages tab display only part of SQL. I change it to display full SQL by double-click on the description span before: ![before](https://cloud.githubusercontent.com/assets/5399861/8022257/9f8e0a22-0cf8-11e5-98c8-da4d7a615e7e.png) after double click on the description span: ![after](https://cloud.githubusercontent.com/assets/5399861/8022261/dac08d4a-0cf8-11e5-8fe7-74c96c6ce933.png) Author: 979969786 <q79969786@gmail.com> Closes #6646 from 979969786/master and squashes the following commits: b5ba20e [979969786] Trigger a double click on the span to show full job description. (cherry picked from commit 081db94) Signed-off-by: Andrew Or <andrew@databricks.com>
1 parent b6fdc6c commit 9d1f4d6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ $(function() {
5050
$("span.additional-metric-title").click(function() {
5151
$(this).parent().find('input[type="checkbox"]').trigger('click');
5252
});
53+
54+
// Trigger a double click on the span to show full job description.
55+
$(".description-input").dblclick(function() {
56+
$(this).removeClass("description-input").addClass("description-input-full");
57+
});
5358
});

core/src/main/resources/org/apache/spark/ui/static/webui.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ pre {
135135
display: block;
136136
}
137137

138+
.description-input-full {
139+
overflow: hidden;
140+
text-overflow: ellipsis;
141+
width: 100%;
142+
white-space: normal;
143+
display: block;
144+
}
145+
138146
.stacktrace-details {
139147
max-height: 300px;
140148
overflow-y: auto;

0 commit comments

Comments
 (0)