Skip to content

Support regexp_substr function#6316

Merged
ti-chi-bot merged 138 commits into
pingcap:masterfrom
xzhangxian1008:substr
Dec 1, 2022
Merged

Support regexp_substr function#6316
ti-chi-bot merged 138 commits into
pingcap:masterfrom
xzhangxian1008:substr

Conversation

@xzhangxian1008
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: ref #6115

Problem Summary:

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot ti-chi-bot requested a review from SeaRise November 28, 2022 07:28
Comment thread dbms/src/Common/OptimizedRegularExpression.h Outdated
Comment thread dbms/src/Common/OptimizedRegularExpression.h Outdated
Comment thread dbms/src/Common/OptimizedRegularExpression.inl.h
Comment thread dbms/src/Functions/FunctionsRegexp.h Outdated
Comment thread dbms/src/Functions/FunctionsRegexp.h Outdated
Comment thread dbms/src/Functions/FunctionsRegexp.h Outdated
Comment thread dbms/src/Functions/FunctionsRegexp.h
@xzhangxian1008
Copy link
Copy Markdown
Contributor Author

/cc @XuHuaiyu

@ti-chi-bot ti-chi-bot requested a review from XuHuaiyu November 29, 2022 08:37
Comment thread dbms/src/Common/OptimizedRegularExpression.inl.h Outdated
Comment thread dbms/src/Common/OptimizedRegularExpression.inl.h Outdated
Comment thread dbms/src/Functions/FunctionsRegexp.h Outdated
Comment thread dbms/src/Functions/FunctionsRegexp.h Outdated
Comment thread dbms/src/Functions/FunctionsRegexp.h
}

String pat = pat_param.getString(0);
if (unlikely(pat.empty()))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check whether pos >= 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check whether pos >= 1?

Yes, we check position in this file OptimizedRegularExpression.inl.h.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 1, 2022
Copy link
Copy Markdown
Contributor

@windtalker windtalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Dec 1, 2022
@xzhangxian1008
Copy link
Copy Markdown
Contributor Author

/run-all-tests

@xzhangxian1008
Copy link
Copy Markdown
Contributor Author

/run-all-tests

@windtalker
Copy link
Copy Markdown
Contributor

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

@windtalker: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Copy Markdown
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 1654586

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 1, 2022
@ti-chi-bot
Copy link
Copy Markdown
Member

@xzhangxian1008: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 89adba9 into pingcap:master Dec 1, 2022
@xzhangxian1008 xzhangxian1008 deleted the substr branch December 1, 2022 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants