-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-29019][WebUI] Improve tooltip JDBC/ODBC Server tab #25723
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
Changes from 9 commits
bc0adbc
6f213ce
cd193a9
247d667
5956468
c4a209f
681b534
a95c90b
2d278d0
793ef92
7f480f8
344fd6f
6474935
1bb6196
6ab97b8
281c8ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,4 +99,16 @@ private[spark] object ToolTips { | |
| dynamic allocation is enabled. The number of granted executors may exceed the limit | ||
| ephemerally when executors are being killed. | ||
| """ | ||
|
|
||
| val THRIFT_SERVER_FINISH_TIME = | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we move these changes and tests to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, if these are only relevant to the thrift server UI, they could go with the other thrift server UI code.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1, too.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, it make sense to have the tooltips in thriftserver module, i'm going to move it. |
||
| "Finish time of the execution, before fetching the results" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think "Execution finish time" would sound better than "Finish time of the execution"
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm Sorry, spanish common error when we write in english :-) |
||
|
|
||
| val THRIFT_SERVER_CLOSE_TIME = | ||
| "Close time of the operation after fetching the results" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likewise, "Operation close time" |
||
|
|
||
| val THRIFT_SERVER_EXECUTION = | ||
| "Difference between start time and finish time" | ||
|
|
||
| val THRIFT_SERVER_DURATION = | ||
| "Difference between start time and close time" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,9 @@ private[ui] class ThriftServerPage(parent: ThriftServerTab) extends WebUIPage("" | |
| val table = if (numStatement > 0) { | ||
| val headerRow = Seq("User", "JobID", "GroupID", "Start Time", "Finish Time", "Close Time", | ||
| "Execution Time", "Duration", "Statement", "State", "Detail") | ||
| val tooltips = Seq(None, None, None, None, Some(ToolTips.THRIFT_SERVER_FINISH_TIME), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we add the same to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought it was the same code to generate this two pages. I forgot test it. Thanks!! |
||
| Some(ToolTips.THRIFT_SERVER_CLOSE_TIME), Some(ToolTips.THRIFT_SERVER_EXECUTION), | ||
| Some(ToolTips.THRIFT_SERVER_DURATION), None, None, None) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or, if not inside
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've been thinking about it, yes, it's a good idea, in that way we don't break the homogeneous way of treating the parameters at UIUtils.listingTable and we ensure it is going to be less problems if new headers are added |
||
| val dataRows = listener.getExecutionList.sortBy(_.startTimestamp).reverse | ||
|
|
||
| def generateDataRow(info: ExecutionInfo): Seq[Node] = { | ||
|
|
@@ -100,7 +103,7 @@ private[ui] class ThriftServerPage(parent: ThriftServerTab) extends WebUIPage("" | |
| } | ||
|
|
||
| Some(UIUtils.listingTable(headerRow, generateDataRow, | ||
| dataRows, false, None, Seq(null), false)) | ||
| dataRows, false, None, Seq(null), false, tooltipHeaders = tooltips)) | ||
| } else { | ||
| None | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.