Github user carsonwang commented on a diff in the pull request: https://github.com/apache/spark/pull/9297#discussion_r44622811 --- Diff: core/src/main/scala/org/apache/spark/ui/SparkUI.scala --- @@ -150,7 +151,14 @@ private[spark] object SparkUI { appName: String, basePath: String, startTime: Long): SparkUI = { - create(None, conf, listenerBus, securityManager, appName, basePath, startTime = startTime) + val sparkUI = create( + None, conf, listenerBus, securityManager, appName, basePath, startTime = startTime) + JsonProtocol.eventRegisters.foreach { eventRegister => + val listener = eventRegister.getListener() + listenerBus.addListener(listener) + eventRegister.attachUITab(listener, sparkUI) --- End diff -- Yes. Ok, I changed to only attach the SQL tab when a `SparkListenerSQLExecutionStart` event is received for the first time.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org