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_r348325116
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/ui/AllExecutionsPage.scala
 ##########
 @@ -120,6 +121,16 @@ private[ui] class AllExecutionsPage(parent: SQLTab) 
extends WebUIPage("") with L
     val summary: NodeSeq =
       <div>
         <ul class="unstyled">
+          {
+            if (streamQueryStore.nonEmpty && 
streamQueryStore.get.allStreamQueries.nonEmpty) {
 
 Review comment:
   `streamQueryStore.map(_.allStreamQueries).filter(_.nonEmpty).foreach { 
queries => ... }` then you can just use `queries.size` instead of 
`streamQueryStore.get.allStreamQueries.size`

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