sarutak commented on a change in pull request #27687: [SPARK-30943][SS] Show
"batch ID" in tool tip string for Structured Streaming UI graphs
URL: https://github.com/apache/spark/pull/27687#discussion_r383594619
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/streaming/ui/StreamingQueryStatisticsPage.scala
##########
@@ -114,6 +133,9 @@ private[ui] class StreamingQueryStatisticsPage(parent:
StreamingQueryTab)
def generateStatTable(query: StreamingQueryUIData): Seq[Node] = {
val batchTimes = withNoProgress(query,
query.recentProgress.map(p => df.parse(p.timestamp).getTime),
Array.empty[Long])
+ val batchToTimestamps = withNoProgress(query,
Review comment:
Can we create `batchTimes` like `batchToTimestamps.map(_._2)` to avoid
having duplicate code?
----------------------------------------------------------------
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]