diff --git a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EngineSessionPage.scala b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EngineSessionPage.scala index fae7ed86e9d..dc0274b96f7 100644 --- a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EngineSessionPage.scala +++ b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EngineSessionPage.scala @@ -81,7 +81,7 @@ case class EngineSessionPage(parent: EngineTab) Server {sessionStat.serverIp}, Session created at {formatDate(sessionStat.startTime)}, { - if (sessionStat.endTime == -1L) { + if (sessionStat.endTime < 0) { "" } else { s"""