-
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
expression: panic in test mode if builtin function's PbCode unspecified #13334
Conversation
Signed-off-by: Lonng <heng@lonng.org>
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #13334 +/- ##
================================================
- Coverage 80.5814% 80.2358% -0.3457%
================================================
Files 469 469
Lines 114638 112866 -1772
================================================
- Hits 92377 90559 -1818
- Misses 15198 15297 +99
+ Partials 7063 7010 -53 |
Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
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
Signed-off-by: Lonng <heng@lonng.org>
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 |
Signed-off-by: Lonng <heng@lonng.org>
@@ -30,6 +31,14 @@ import ( | |||
"github.com/pingcap/tipb/go-tipb" | |||
) | |||
|
|||
func init() { | |||
fpname := "github.com/pingcap/tidb/expression/PanicIfPbCodeUnspecified" |
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.
Why not put it to TestPanicIfPbCodeUnspecified
?
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.
It's should affect all tests.
…ed (pingcap#13334) Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng heng@lonng.org
What problem does this PR solve?
tipb
to the latest version which makes detect missing PbCode easily.What is changed and how it works?
Update go.mod and add a fail point to build expression to Protobuf.
Check List
Tests
Release note