[
https://issues.apache.org/jira/browse/SPARK-26098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717768#comment-16717768
]
ASF GitHub Bot commented on SPARK-26098:
----------------------------------------
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]
> Show associated SQL query in Job page
> -------------------------------------
>
> Key: SPARK-26098
> URL: https://issues.apache.org/jira/browse/SPARK-26098
> Project: Spark
> Issue Type: Improvement
> Components: Web UI
> Affects Versions: 3.0.0
> Reporter: Gengliang Wang
> Priority: Major
>
> For jobs associated to SQL queries, it would be easier to understand the
> context to showing the SQL query in Job detail page.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]