-
Notifications
You must be signed in to change notification settings - Fork 924
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
[KYUUBI #6107] [Spark] Collect and summarize the executorRunTime
and executorCpuTime
of the statement
#6112
[KYUUBI #6107] [Spark] Collect and summarize the executorRunTime
and executorCpuTime
of the statement
#6112
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6112 +/- ##
=========================================
Coverage 61.12% 61.13%
Complexity 23 23
=========================================
Files 623 624 +1
Lines 37195 37237 +42
Branches 5039 5041 +2
=========================================
+ Hits 22737 22766 +29
- Misses 12005 12007 +2
- Partials 2453 2464 +11 ☔ View full report in Codecov by Sentry. |
executorRunTime
and executorCpuTime
of the statement
executorRunTime
and executorCpuTime
of the statementexecutorRunTime
and executorCpuTime
of the statement
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.
LGTM overall. Is there any screenshot or logging output to show the results?
...park-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/SparkOperation.scala
Outdated
Show resolved
Hide resolved
...park-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/session/SparkSessionImpl.scala
Outdated
Show resolved
Hide resolved
...ls/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/kyuubi/SQLOperationListener.scala
Outdated
Show resolved
Hide resolved
...park-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/session/SparkSessionImpl.scala
Outdated
Show resolved
Hide resolved
...ls/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/kyuubi/SQLOperationListener.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: cxzl25 <[email protected]>
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.
LGTM. Thank you for your contribution.
Can you update the screenshot to the description of the PR?
done |
Thanks. Could you have another try for replacing |
done |
...ls/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/kyuubi/SQLOperationListener.scala
Outdated
Show resolved
Hide resolved
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.
LGTM, 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.
LGTM.
Thanks, merged to master. |
...ubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/SessionEvent.scala
Show resolved
Hide resolved
...rk-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/SparkOperationEvent.scala
Show resolved
Hide resolved
…of the Spark event # 🔍 Description ## Issue References 🔗 This pull request fixes #6112 (comment) ## Describe Your Solution 🔧 add comments for the newly added parameters ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6124 from XorSum/features/features/spark-engine-cpu-time-collect-comments. Closes #6107 d93028b [bkhan] add comments Authored-by: bkhan <[email protected]> Signed-off-by: Shaoyun Chen <[email protected]>
…Spark Engine tab # 🔍 Description ## Issue References 🔗 This pull request fixes #6108 ## Describe Your Solution 🔧 Follow #6112 Display the run time and CPU time of statements or sessions in the Spark UI. <img width="1429" alt="screenshot 2024-03-05 10 37 26" src="https://github.com/apache/kyuubi/assets/23011702/337772e0-a681-4989-b6f9-ee3633bb6287"> ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6113 from XorSum/features/spark-engine-cpu-time-UI. Closes #6108 aad2bbb [bkhan] session immediately 8e957c7 [bkhan] display run time 9018a07 [bkhan] Apply suggestions from code review 8523364 [bkhan] Display the CPU time consumed by the statement in the Engine tab Authored-by: bkhan <[email protected]> Signed-off-by: Shaoyun Chen <[email protected]>
…me` and `executorCpuTime` of the statement # 🔍 Description ## Issue References 🔗 This pull request fixes apache#6107 ## Describe Your Solution 🔧 The total execution time of a statement (or a session) is the summary of the execution time of the stages belonging to the statement (or session). The total execution time of a stage is collected from `SQLOperationListener#onStageCompleted`. The total execution times of the statement or a session are stored in the engine events or output to the log. <img width="962" alt="截屏2024-02-29 14 47 50" src="https://github.com/apache/kyuubi/assets/23011702/176df1db-bb20-428b-94b8-fa02c946fde2"> <img width="1143" alt="截屏2024-02-29 14 47 21" src="https://github.com/apache/kyuubi/assets/23011702/8cfc6a72-f6e8-45b6-bdda-30296c94c893"> ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6112 from XorSum/features/spark-engine-cpu-time-collect. Closes apache#6107 8028005 [bkhan] check same group d9efa2d [bkhan] formatDuration a8841cd [bkhan] update 2507159 [bkhan] Apply suggestions from code review cfed2b9 [bkhan] use formatDurationVerbose 444d4aa [bkhan] Collect and summarize the executorRunTime and executorCpuTime of the statement Authored-by: bkhan <[email protected]> Signed-off-by: Shaoyun Chen <[email protected]>
…eters of the Spark event # 🔍 Description ## Issue References 🔗 This pull request fixes apache#6112 (comment) ## Describe Your Solution 🔧 add comments for the newly added parameters ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6124 from XorSum/features/features/spark-engine-cpu-time-collect-comments. Closes apache#6107 d93028b [bkhan] add comments Authored-by: bkhan <[email protected]> Signed-off-by: Shaoyun Chen <[email protected]>
…n the Spark Engine tab # 🔍 Description ## Issue References 🔗 This pull request fixes apache#6108 ## Describe Your Solution 🔧 Follow apache#6112 Display the run time and CPU time of statements or sessions in the Spark UI. <img width="1429" alt="screenshot 2024-03-05 10 37 26" src="https://github.com/apache/kyuubi/assets/23011702/337772e0-a681-4989-b6f9-ee3633bb6287"> ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6113 from XorSum/features/spark-engine-cpu-time-UI. Closes apache#6108 aad2bbb [bkhan] session immediately 8e957c7 [bkhan] display run time 9018a07 [bkhan] Apply suggestions from code review 8523364 [bkhan] Display the CPU time consumed by the statement in the Engine tab Authored-by: bkhan <[email protected]> Signed-off-by: Shaoyun Chen <[email protected]>
🔍 Description
Issue References 🔗
This pull request fixes #6107
Describe Your Solution 🔧
The total execution time of a statement (or a session) is the summary of the execution time of the stages belonging to the statement (or session).
The total execution time of a stage is collected from
SQLOperationListener#onStageCompleted
.The total execution times of the statement or a session are stored in the engine events or output to the log.
Types of changes 🔖
Test Plan 🧪
Behavior Without This Pull Request ⚰️
Behavior With This Pull Request 🎉
Related Unit Tests
Checklist 📝
Be nice. Be informative.