-
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
executor, infoschema, util: add sum_errors and sum_warnings to statement summary tables (#16456) #16502
Conversation
…ent summary tables (pingcap#16456)
/run-all-tests |
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 |
@sre-bot merge failed. |
/rebuild |
1 similar comment
/rebuild |
/run-all-tests |
Failed CI:
|
/run-unit-test |
Failed CI case:
|
1 similar comment
Failed CI case:
|
/run-unit-test |
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
cherry-pick #16456 to release-4.0
What problem does this PR solve?
Problem Summary:
Add
sum_errors
andsum_warnings
tostatements_summary
.These 2 fields indicate the total errors and warnings encountered for each kind of SQL.
What is changed and how it works?
What's Changed:
ONLY summarize runtime errors now. It's a big move to also consider compiler errors, so it's not suitable for 4.0.
MySQL: Statements that has parser errors are not summarized in statement summary tables.
TiDB: Statements that has parser errors or compiler errors are not summarized.
How it Works:
Error: check whether it succeeded.
Warning: get
StmtCtx.WarningCount()
.Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
N/A
Release note
sum_errors
andsum_warnings
to statement summary tables.