xuanyuanking commented on a change in pull request #26201:
[SPARK-29543][SS][UI] Init structured streaming ui
URL: https://github.com/apache/spark/pull/26201#discussion_r364540990
##########
File path: core/src/main/scala/org/apache/spark/ui/UIUtils.scala
##########
@@ -572,4 +628,23 @@ private[spark] object UIUtils extends Logging {
def buildErrorResponse(status: Response.Status, msg: String): Response = {
Response.status(status).entity(msg).`type`(MediaType.TEXT_PLAIN).build()
}
+
+ /**
+ * There may be different duration labels in each batch. So we need to
+ * mark those missing duration label as '0d' to avoid UI rending error.
+ */
+ def durationDataPadding(values: Array[(Long, ju.Map[String, JLong])])
+ : Array[(Long, Map[String, Double])] = {
Review comment:
nit: indent
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]