Skip to content

Conversation

@BiteTheDDDDt
Copy link
Contributor

@BiteTheDDDDt BiteTheDDDDt commented Jun 23, 2025

What problem does this PR solve?

support like with escape clause

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@BiteTheDDDDt
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 17.31% (9/52) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 56.58% (15110/26705)
Line Coverage 45.38% (135458/298473)
Region Coverage 44.53% (68173/153081)
Branch Coverage 39.09% (35001/89532)

std::string replace_pattern_by_escape(const StringRef& pattern, char escape_char) {
std::string result;
result.reserve(pattern.size);
for (size_t i = 0; i < pattern.size; ++i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

这个代码得加单测

@BiteTheDDDDt
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 31.03% (9/29) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 17.31% (9/52) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 56.62% (15126/26714)
Line Coverage 45.41% (135618/298621)
Region Coverage 44.57% (68249/153117)
Branch Coverage 39.16% (35079/89578)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 17.31% (9/52) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 61.92% (16274/26282)
Line Coverage 51.41% (153431/298439)
Region Coverage 48.81% (87905/180099)
Branch Coverage 42.28% (43274/102354)

@BiteTheDDDDt
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 55.77% (29/52) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 56.63% (15130/26717)
Line Coverage 45.45% (135714/298628)
Region Coverage 44.65% (68368/153106)
Branch Coverage 39.25% (35158/89576)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 55.77% (29/52) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 61.98% (16291/26285)
Line Coverage 51.55% (153848/298446)
Region Coverage 48.99% (88227/180084)
Branch Coverage 42.49% (43485/102350)

inline std::string replace_pattern_by_escape(const StringRef& pattern, char escape_char) {
std::string result;
result.reserve(pattern.size);
for (size_t i = 0; i < pattern.size; ++i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

like "\n" --> like "\n"
like "\a"

like "\n" escape 'b'

\a

@BiteTheDDDDt
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 55.77% (29/52) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.05% (15366/26934)
Line Coverage 46.15% (139457/302211)
Region Coverage 45.48% (70676/155405)
Branch Coverage 40.23% (37334/92790)

@BiteTheDDDDt
Copy link
Contributor Author

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 30, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@BiteTheDDDDt BiteTheDDDDt merged commit 1bfad89 into apache:master Jun 30, 2025
25 of 28 checks passed
BiteTheDDDDt added a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Jun 30, 2025
BiteTheDDDDt added a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Jun 30, 2025
morrySnow pushed a commit that referenced this pull request Jul 2, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jul 4, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jul 4, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jul 4, 2025
@dataroaring dataroaring added dev/3.0.7-merged usercase Important user case type label and removed dev/3.0.x dev/3.0.x-conflict labels Jul 7, 2025
BiteTheDDDDt added a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.7-merged dev/3.1.0-merged reviewed usercase Important user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants