-
Notifications
You must be signed in to change notification settings - Fork 3k
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
enhance:[Cherry-Pick] Refine varchar length exceeds max length error message (#31521) #34034
Conversation
…us-io#31521) Signed-off-by: aoiasd <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.3 #34034 +/- ##
==========================================
+ Coverage 83.00% 83.07% +0.07%
==========================================
Files 851 851
Lines 107495 106984 -511
==========================================
- Hits 89226 88879 -347
+ Misses 14966 14791 -175
- Partials 3303 3314 +11
|
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
} | ||
} | ||
} | ||
return v.checkArrayElement(data, fieldSchema) | ||
} | ||
|
||
func verifyLengthPerRow[E interface{ ~string | ~[]byte }](strArr []E, maxLength int64) error { | ||
func verifyLengthPerRow[E interface{ ~string | ~[]byte }](strArr []E, maxLength int64) (int, bool) { |
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.
Any particular reason to change the method signature here?
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.
IMHO, to return the error index
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aoiasd, congqixia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
pr: #31521