Skip to content

Commit 55a360d

Browse files
author
Baohe Zhang
committed
[SPARK-32924] Make duration column in master UI sorted in the correct order
1 parent 17601e0 commit 55a360d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/master/ui/MasterPage.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {
309309
<td>{UIUtils.formatDate(app.submitDate)}</td>
310310
<td>{app.desc.user}</td>
311311
<td>{app.state.toString}</td>
312-
<td>{UIUtils.formatDuration(app.duration)}</td>
312+
<td sorttable_customkey={app.duration.toString}>
313+
{UIUtils.formatDuration(app.duration)}
314+
</td>
313315
</tr>
314316
}
315317

0 commit comments

Comments
 (0)