-
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]Convert unincode to ascii to improving expression parsing efficiency #36676
enhance: [cherry-pick]Convert unincode to ascii to improving expression parsing efficiency #36676
Conversation
Signed-off-by: Cai Zhang <[email protected]>
@@ -553,6 +557,67 @@ func (v *ParserVisitor) VisitTerm(ctx *parser.TermContext) interface{} { | |||
} | |||
} | |||
|
|||
//// VisitTerm translates expr to term plan. |
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.
remove this
// VisitString translates expr to GenericValue. | ||
func (v *ParserVisitor) VisitString(ctx *parser.StringContext) interface{} { | ||
pattern, err := convertEscapeSingle(ctx.StringLiteral().GetText()) | ||
func parseString(text string) interface{} { |
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.
remove this
Signed-off-by: Cai Zhang <[email protected]>
@xiaocai2333 E2e jenkins job failed, comment |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.4 #36676 +/- ##
===========================================
+ Coverage 70.14% 81.22% +11.07%
===========================================
Files 1064 1064
Lines 140471 140498 +27
===========================================
+ Hits 98533 114118 +15585
+ Misses 37598 22055 -15543
+ Partials 4340 4325 -15
|
/lgtm |
Signed-off-by: Cai Zhang <[email protected]>
Signed-off-by: Cai Zhang <[email protected]>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xiaocai2333, xiaofan-luan 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 |
issue: #36672
master pr: #36675