Skip to content
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

Merged
merged 4 commits into from
Oct 9, 2024

Conversation

xiaocai2333
Copy link
Contributor

issue: #36672

master pr: #36675

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Oct 8, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Oct 8, 2024
@@ -553,6 +557,67 @@ func (v *ParserVisitor) VisitTerm(ctx *parser.TermContext) interface{} {
}
}

//// VisitTerm translates expr to term plan.
Copy link
Contributor Author

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{} {
Copy link
Contributor Author

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]>
@sre-ci-robot sre-ci-robot added size/M Denotes a PR that changes 30-99 lines. and removed size/L Denotes a PR that changes 100-499 lines. labels Oct 8, 2024
Copy link
Contributor

mergify bot commented Oct 8, 2024

@xiaocai2333 E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.22%. Comparing base (2428ade) to head (051fabc).
Report is 10 commits behind head on 2.4.

Additional details and impacted files

Impacted file tree graph

@@             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     
Files with missing lines Coverage Δ
internal/parser/planparserv2/plan_parser_v2.go 88.75% <100.00%> (+1.79%) ⬆️
internal/parser/planparserv2/utils.go 92.60% <100.00%> (+0.31%) ⬆️

... and 275 files with indirect coverage changes

@xiaofan-luan
Copy link
Collaborator

/lgtm
/approve

@sre-ci-robot sre-ci-robot added size/L Denotes a PR that changes 100-499 lines. and removed lgtm size/M Denotes a PR that changes 30-99 lines. labels Oct 8, 2024
Signed-off-by: Cai Zhang <[email protected]>
@mergify mergify bot added the ci-passed label Oct 8, 2024
@xiaofan-luan
Copy link
Collaborator

/lgtm
/approve

@sre-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit f7302a7 into milvus-io:2.4 Oct 9, 2024
15 checks passed
@xiaocai2333 xiaocai2333 deleted the refine_parse_expr-release-1 branch November 8, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants