gatorsmile commented on a change in pull request #23068: [SPARK-26098][WebUI]
Show associated SQL query in Job page
URL: https://github.com/apache/spark/pull/23068#discussion_r240750502
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/JobPage.scala
##########
@@ -278,6 +279,17 @@ private[ui] class JobPage(parent: JobsTab, store:
AppStatusStore) extends WebUIP
<Strong>Status:</Strong>
{jobData.status}
</li>
+ {
+ if (sqlExecutionId.isDefined) {
+ <li>
+ <strong>Associated SQL Query: </strong>
+ {<a href={"%s/SQL/execution/?id=%s".format(
+ UIUtils.prependBaseUri(request, parent.basePath),
+ sqlExecutionId.get)
Review comment:
We might see a strange error if `sqlExecutionId ` is None.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]