-
Notifications
You must be signed in to change notification settings - Fork 29k
[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
Closed
planga82
wants to merge
16
commits into
apache:master
from
planga82:feature/SPARK-29019_tooltipjdbcServer
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bc0adbc
Merge remote-tracking branch 'upstream/master'
planga82 6f213ce
Merge remote-tracking branch 'upstream/master'
planga82 cd193a9
Merge remote-tracking branch 'upstream/master'
planga82 247d667
Merge remote-tracking branch 'upstream/master'
planga82 5956468
Merge remote-tracking branch 'upstream/master'
planga82 c4a209f
[SPARK-29019][WebUI] Improve tooltip JDBC/ODBC Server tab
planga82 681b534
[SPARK-29019][WebUI] Fix scala style
planga82 a95c90b
[SPARK-29019][WebUI] Fix typo and text
planga82 2d278d0
[SPARK-29019][WebUI] Update ThiftServerSessionPage
planga82 793ef92
[SPARK-29019][WebUI] Fix white space scala style
planga82 7f480f8
[SPARK-29019][WebUI] Fix tooltip description
planga82 344fd6f
[SPARK-29019][WebUI] Improve comments
planga82 6474935
[SPARK-29019][WebUI] Assert equal lenght parameters
planga82 1bb6196
[SPARK-29019] Move tooltips to thrift server module
planga82 6ab97b8
[SPARK-29019] Fix scala style
planga82 281c8ce
[SPARK-29019] delete blank line
planga82 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ import org.apache.commons.text.StringEscapeUtils | |
|
|
||
| import org.apache.spark.internal.Logging | ||
| import org.apache.spark.sql.hive.thriftserver.HiveThriftServer2.{ExecutionInfo, ExecutionState, SessionInfo} | ||
| import org.apache.spark.sql.hive.thriftserver.ui.ToolTips._ | ||
| import org.apache.spark.ui._ | ||
| import org.apache.spark.ui.UIUtils._ | ||
|
|
||
|
|
@@ -72,6 +73,10 @@ 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(THRIFT_SERVER_FINISH_TIME), | ||
| Some(THRIFT_SERVER_CLOSE_TIME), Some(THRIFT_SERVER_EXECUTION), | ||
| Some(THRIFT_SERVER_DURATION), None, None, None) | ||
| assert(headerRow.length == tooltips.length) | ||
|
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. Oh I see, you check it here. Usually I'd say use |
||
| val dataRows = listener.getExecutionList.sortBy(_.startTimestamp).reverse | ||
|
|
||
| def generateDataRow(info: ExecutionInfo): Seq[Node] = { | ||
|
|
@@ -100,7 +105,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 | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/ui/ToolTips.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.spark.sql.hive.thriftserver.ui | ||
|
|
||
| private[ui] object ToolTips { | ||
| val THRIFT_SERVER_FINISH_TIME = | ||
| "Execution finish time, before fetching the results" | ||
|
|
||
| val THRIFT_SERVER_CLOSE_TIME = | ||
| "Operation close time after fetching the results" | ||
|
|
||
| val THRIFT_SERVER_EXECUTION = | ||
| "Difference between start time and finish time" | ||
|
|
||
| val THRIFT_SERVER_DURATION = | ||
| "Difference between start time and close time" | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.