Repository: spark
Updated Branches:
  refs/heads/branch-1.2 5de97fc43 -> f1e7d1c2c


[SPARK-4310][WebUI] Sort 'Submitted' column in Stage page by time

Author: zsxwing <[email protected]>

Closes #3179 from zsxwing/SPARK-4310 and squashes the following commits:

b0d29f5 [zsxwing] Sort 'Submitted' column in Stage page by time

(cherry picked from commit 825709a0b8f9b4bfb2718ecca8efc32be96c5a57)
Signed-off-by: Andrew Or <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f1e7d1c2
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f1e7d1c2
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f1e7d1c2

Branch: refs/heads/branch-1.2
Commit: f1e7d1c2c02ded1f66ff2a3cff9a6e46bb10c5d3
Parents: 5de97fc
Author: zsxwing <[email protected]>
Authored: Thu Nov 13 14:37:04 2014 -0800
Committer: Andrew Or <[email protected]>
Committed: Thu Nov 13 14:37:14 2014 -0800

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/f1e7d1c2/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala 
b/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala
index eae542d..2ff561c 100644
--- a/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala
+++ b/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala
@@ -175,7 +175,9 @@ private[ui] class StageTableBase(
       Seq.empty
     }} ++
     <td>{makeDescription(s)}</td>
-    <td valign="middle">{submissionTime}</td>
+    <td sorttable_customkey={s.submissionTime.getOrElse(0).toString} 
valign="middle">
+      {submissionTime}
+    </td>
     <td 
sorttable_customkey={duration.getOrElse(-1).toString}>{formattedDuration}</td>
     <td class="progress-cell">
       {makeProgressBar(stageData.numActiveTasks, 
stageData.completedIndices.size,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to