- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28.9k
[SPARK-27715][SQL][UI] SQL query details in UI does not show in correct format. #24609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| cc @srowen | 
| Test build #105399 has finished for PR 24609 at commit  
 | 
| retest this please | 
| Test build #105407 has finished for PR 24609 at commit  
 | 
        
          
                sql/core/src/main/scala/org/apache/spark/sql/execution/ui/AllExecutionsPage.scala
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                sql/core/src/main/scala/org/apache/spark/sql/execution/ui/AllExecutionsPage.scala
          
            Show resolved
            Hide resolved
        
      | Test build #105445 has finished for PR 24609 at commit  
 | 
        
          
                sql/core/src/main/scala/org/apache/spark/sql/execution/ui/AllExecutionsPage.scala
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | </span> ++ | ||
| <div class="stage-details collapsed"> | ||
| <pre>{execution.description}<br></br>{execution.details}</pre> | ||
| <pre>{jobDescription}<br></br>{execution.details}</pre> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems jobDescription  trims the execution.description. But for long queries we shouldn't trim the query and need to display in the description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, do not understand what you mean. makeDescription returns HTML rendering of a job or stage description. It will try to parse the string as HTML and make sure that it only contains anchors with root-relative links. Otherwise, the whole string will rendered as a simple escaped text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahidki31 Got it, let me confirm this problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahidki31 Could you please test the pr again? It is fixed in my local test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @uncleGen . Should we fix here too?
spark/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala
Lines 204 to 212 in 58989cd
| val description = paths.size match { | |
| case 0 => | |
| s"Listing leaf files and directories 0 paths" | |
| case 1 => | |
| s"Listing leaf files and directories for 1 path:<br/>${paths(0)}" | |
| case s => | |
| s"Listing leaf files and directories for $s paths:<br/>${paths(0)}, ..." | |
| } | |
| sparkContext.setJobDescription(description) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uncleGen I'd just look at this possible change too.
| Test build #105479 has finished for PR 24609 at commit  
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's safer, but, I wonder if we should just remove the <br/> from StreamExecution.getBatchDescriptionString. It doesn't seem essential, nor does it seem appropriate to add HTML there.
| s/UI dose not/UI does not | 
| @gaborgsomogyi Sorry, what do you mean? | 
| (He's just suggesting you fix the typo in the title here) | 
| @srowen I removed the html tag from the  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, pending tests, that looks like a better fix.
| Test build #111346 has finished for PR 24609 at commit  
 | 
| @uncleGen the title still contains the typo and it's not allowed to fix by reviewers. Can you please take care of it? Otherwise looks good. | 
| (I fixed the title.) | 
| Thanks @srowen and @gaborgsomogyi | 
| Merged to master | 
| (Currently having trouble with JIRA, even after updating to LDAP password; I'll update the issue when it works or else anyone else can resolve it) | 



What changes were proposed in this pull request?
before pr:

after pr:

How was this patch tested?
manual test