HeartSaVioR 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_r366138174
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/streaming/ui/StreamingQueryStatusListener.scala
 ##########
 @@ -45,13 +50,15 @@ class StreamingQueryStatusListener(sqlConf: SQLConf) 
extends StreamingQueryListe
 
   override def onQueryStarted(event: 
StreamingQueryListener.QueryStartedEvent): Unit = {
     activeQueryStatus.putIfAbsent(event.runId,
-      new StreamingQueryUIData(event.name, event.id, event.runId))
+      new StreamingQueryUIData(event.name, event.id, event.runId, 
event.submitTime))
   }
 
   override def onQueryProgress(event: 
StreamingQueryListener.QueryProgressEvent): Unit = {
+    val batchTimestamp = 
timestampFormat.parse(event.progress.timestamp).getTime
     val queryStatus = activeQueryStatus.getOrDefault(
       event.progress.runId,
-      new StreamingQueryUIData(event.progress.name, event.progress.id, 
event.progress.runId))
+      new StreamingQueryUIData(event.progress.name, event.progress.id, 
event.progress.runId,
 
 Review comment:
   Looks like the change is not incorporated with existing test suites. Could 
you fix them?

----------------------------------------------------------------
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]

Reply via email to