This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new f945d01c25ae [SPARK-51651][UI] Link the root execution id for current 
execution if any
f945d01c25ae is described below

commit f945d01c25ae47b86a41b95f933fd3d9f3149fc8
Author: Kent Yao <[email protected]>
AuthorDate: Mon Mar 31 07:56:22 2025 +0900

    [SPARK-51651][UI] Link the root execution id for current execution if any
    
    ### What changes were proposed in this pull request?
    
    Link the root execution id for current execution if any
    
    ### Why are the changes needed?
    Improve the UI/UX
    
    ### Does this PR introduce _any_ user-facing change?
    Yes. UI changes
    
    ### How was this patch tested?
    
![image](https://github.com/user-attachments/assets/816cc111-9dc5-4ac1-bf77-1956ed3d38d0)
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #50444 from yaooqinn/SPARK-51651.
    
    Authored-by: Kent Yao <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../org/apache/spark/sql/execution/ui/ExecutionPage.scala      | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/sql/core/src/main/scala/org/apache/spark/sql/execution/ui/ExecutionPage.scala 
b/sql/core/src/main/scala/org/apache/spark/sql/execution/ui/ExecutionPage.scala
index f11d3f6eb343..8e4fd039399a 100644
--- 
a/sql/core/src/main/scala/org/apache/spark/sql/execution/ui/ExecutionPage.scala
+++ 
b/sql/core/src/main/scala/org/apache/spark/sql/execution/ui/ExecutionPage.scala
@@ -71,6 +71,16 @@ class ExecutionPage(parent: SQLTab) extends 
WebUIPage("execution") with Logging
             <li>
               <strong>Duration: </strong>{UIUtils.formatDuration(duration)}
             </li>
+            {
+              if (executionUIData.rootExecutionId != executionId) {
+                <li>
+                  <strong>Parent Execution: </strong>
+                  <a href={"?id=" + executionUIData.rootExecutionId}>
+                    {executionUIData.rootExecutionId}
+                  </a>
+                </li>
+              }
+            }
             {jobLinks(JobExecutionStatus.RUNNING, "Running Jobs:")}
             {jobLinks(JobExecutionStatus.SUCCEEDED, "Succeeded Jobs:")}
             {jobLinks(JobExecutionStatus.FAILED, "Failed Jobs:")}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to