-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: record query start time to session variables #11822
Conversation
Signed-off-by: Zhang Jian <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #11822 +/- ##
================================================
+ Coverage 81.4658% 81.4853% +0.0195%
================================================
Files 435 435
Lines 93854 93753 -101
================================================
- Hits 76459 76395 -64
+ Misses 11911 11883 -28
+ Partials 5484 5475 -9 |
Codecov Report
@@ Coverage Diff @@
## master #11822 +/- ##
===============================================
- Coverage 82.0784% 81.4504% -0.628%
===============================================
Files 435 435
Lines 96459 94126 -2333
===============================================
- Hits 79172 76666 -2506
- Misses 11807 11959 +152
- Partials 5480 5501 +21 |
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
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
/run-all-tests |
cherry pick to release-3.0 failed |
@zz-jason do we need cherry-pick this to 2.1? it seems I will fix another problem related to slow log too :D |
Signed-off-by: Zhang Jian [email protected]
What problem does this PR solve?
move the following 3 metrics from
StatementContext
toSessionVars
:StatementContext
will be reset when the physical plan is executed. All the metrics are reset.What is changed and how it works?
As described above.
Check List
Tests
Code changes
Related changes