-
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16456 +/- ##
===========================================
Coverage 80.3601% 80.3601%
===========================================
Files 506 506
Lines 136605 136605
===========================================
Hits 109776 109776
Misses 18244 18244
Partials 8585 8585 |
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.
Rest LGTM
…w832/tidb into stmt_summary_runtime_error
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-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
/merge |
/run-all-tests |
@djshow832 merge failed. |
/run-integration-copr-test |
/run-unit-test |
…ent summary tables (pingcap#16456)
cherry pick to release-4.0 in PR #16502 |
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.