Skip to content

Commit

Permalink
[KYUUBI apache#5035] Spark engine session page display session end ti…
Browse files Browse the repository at this point in the history
…me and duration

### _Why are the changes needed?_
close apache#5035

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [x] Add screenshots for manual tests if appropriate
![image](https://github.com/apache/kyuubi/assets/18713676/502b489f-6cbd-4510-a89c-b7816b3e15bf)
- [x] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

Closes apache#5038 from lsm1/features/kyuubi_5035.

Closes apache#5035

9ee06f1 [senmiaoliu] fix style
c68fd65 [senmiaoliu] fix style
5d3d869 [senmiaoliu] show session end time

Authored-by: senmiaoliu <senmiaoliu@trip.com>
Signed-off-by: liangbowen <liangbowen@gf.com.cn>
  • Loading branch information
lsm1 authored and bowenliang123 committed Jul 12, 2023
1 parent 3abc7ce commit 84748fc
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,18 @@ case class EngineSessionPage(parent: EngineTab)
<h4>
User {sessionStat.username},
IP {sessionStat.ip},
Server {sessionStat.serverIp},
Server {sessionStat.serverIp}
</h4> ++
<h4>
Session created at {formatDate(sessionStat.startTime)},
{
if (sessionStat.endTime > 0) {
s"""
| ended at ${formatDate(sessionStat.endTime)},
| after ${formatDuration(sessionStat.duration)}.
|""".stripMargin
}
}
Total run {sessionStat.totalOperations} SQL
</h4> ++
sessionPropertiesTable ++
Expand Down

0 comments on commit 84748fc

Please sign in to comment.