-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29589][WEBUI] Support pagination for sqlstats session table in JDBC/ODBC Session page #26246
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
| import org.apache.commons.text.StringEscapeUtils | ||
|
|
||
| import org.apache.spark.internal.Logging | ||
| import org.apache.spark.sql.hive.thriftserver.HiveThriftServer2.{ExecutionInfo, ExecutionState, SessionInfo} |
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.
unused import
| <tr> {data.map(d => <td>{d}</td>)} </tr> | ||
| } | ||
| UIUtils.listingTable(headers, generateDataRow, data, fixedWidth = true) | ||
| } |
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.
unused code.
|
Test build #112615 has finished for PR 26246 at commit
|
srowen
left a comment
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.
Generally looking good as a cleanup
...thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/ui/ThriftServerPage.scala
Show resolved
Hide resolved
|
Retest this please |
|
Test build #112648 has finished for PR 26246 at commit
|
|
Test build #112651 has finished for PR 26246 at commit
|
|
Test build #112667 has finished for PR 26246 at commit
|
|
Merged to master |
|
Thanks @srowen |
… JDBC/ODBC Session page In the PR apache#26215, we supported pagination for sqlstats table in JDBC/ODBC server page. In this PR, we are extending the support of pagination to sqlstats session table by making use of existing pagination classes in apache#26215. Support pagination for sqlsessionstats table in JDBC/ODBC server page in the WEBUI. It will easier for user to analyse the table and it may fix the potential issues like oom while loading the page, that may occur similar to the SQL page (refer apache#22645) There will be no change in the sqlsessionstats table in JDBC/ODBC server page execpt pagination support. Manually verified. Before:  After:  Closes apache#26246 from shahidki31/SPARK_29589. Authored-by: shahid <[email protected]> Signed-off-by: Sean Owen <[email protected]> Signed-off-by: dengziming <[email protected]>
juliuszsompolski
left a comment
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.
| <td>{formatDate(info.startTimestamp)}</td> | ||
| <td>{if (info.finishTimestamp > 0) formatDate(info.finishTimestamp)}</td> | ||
| <td>{if (info.closeTimestamp > 0) formatDate(info.closeTimestamp)}</td> | ||
| <td sorttable_customkey={info.totalTime(info.finishTimestamp).toString}> |
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.
did we remove this sorting option from the new table?
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, because this is no longer required as we are sorting on the raw data.
Line 546 in e46e487
| case "Finish Time" => Ordering.by(_.executionInfo.finishTimestamp) |
I verified, and sorting is working properly for all the columns. Did you face any issues?
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 for the explanation @shahidki31 !
Indeed it works, sorry for my confusion.
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 @juliuszsompolski , no issues.
What changes were proposed in this pull request?
In the PR #26215, we supported pagination for sqlstats table in JDBC/ODBC server page. In this PR, we are extending the support of pagination to sqlstats session table by making use of existing pagination classes in #26215.
Why are the changes needed?
Support pagination for sqlsessionstats table in JDBC/ODBC server page in the WEBUI. It will easier for user to analyse the table and it may fix the potential issues like oom while loading the page, that may occur similar to the SQL page (refer #22645)
Does this PR introduce any user-facing change?
There will be no change in the sqlsessionstats table in JDBC/ODBC server page execpt pagination support.
How was this patch tested?
Manually verified.
Before:
After: