-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29559][Webui] Support pagination for JDBC/ODBC Server page #26215
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
|
Test build #112481 has finished for PR 26215 at commit
|
|
For my reference, is most of the change here just refactoring the code? it's hard to tell what changed. Maybe you can highlight a few key parts that have changed. |
|
There is an existing framework in Spark for pagination of WebUI tables. (Refer Basically we need to create 2 classes that extends to In this PR: Also class Other changes are just refactoring. I think, I followed similar to the PR: #22645 |
|
Merged to master |
|
Thanks @srowen . I will raise followup PRs for other improvements in JDBC/ODBC server page. https://jira.apache.org/jira/browse/SPARK-29588 |
… JDBC/ODBC Session page ### 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:  Closes #26246 from shahidki31/SPARK_29589. Authored-by: shahid <[email protected]> Signed-off-by: Sean Owen <[email protected]>
… 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.
cc @srowen @shahidki31 - did this PR remove the table sorting capabilities?
| <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.
@shahidki31 @srowen Is the new table not sortable now?
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, it is sortable, as we are sorting on the raw data in the Ordering method.
| {if (info.finishTimestamp > 0) formatDate(info.finishTimestamp)} | ||
| </td> | ||
| <td> | ||
| {if (info.closeTimestamp > 0) formatDate(info.closeTimestamp)} |
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.
Should sorttable_customkey be added to these, like in the code that was removed above?
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.
Same as #26215 (comment) Thanks
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. Sorry for my confusion.
What changes were proposed in this pull request?
Supports pagination for SQL Statisitcs table in the JDBC/ODBC tab using existing Spark pagination framework.
Why are the changes needed?
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
SQLStatisticstable in JDBC/ODBC server page execpt pagination support.How was this patch tested?
Manually verified.
Before PR:

After PR: