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

Fix skip custom escape #11091

Closed

Conversation

skadilover
Copy link
Contributor

@skadilover skadilover commented Sep 25, 2024

Fix csutom escape char for substrings-search in constant like pattern.

The exsit ut has covered the custom-escape case but escape char '#' is just not supported by substrings-search

  testLike("%cd", "%#%%", '#', true);
  testLike("cde", "%#%%", '#', false);

Add ut to cover the case:

  testLike("///__", "%//%/%", '/', false);

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 25, 2024
Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 6be7d5a
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66f3c377b3d7c10008492829

Copy link
Collaborator

@JkSelf JkSelf left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your quick fix.

@skadilover
Copy link
Contributor Author

skadilover commented Sep 25, 2024

@Yuhta @mbasmanova Please help to import this PR.

@Yuhta Yuhta added the ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall label Sep 25, 2024
@facebook-github-bot
Copy link
Contributor

@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@kagamiori merged this pull request in 50784a5.

Copy link

Conbench analyzed the 1 benchmark run on commit 50784a5a.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

athmaja-n pushed a commit to athmaja-n/velox that referenced this pull request Jan 10, 2025
Summary:
Fix csutom escape char for substrings-search in constant like pattern.

The exsit ut has covered the custom-escape case but escape char '#' is  just not supported by substrings-search
```
  testLike("%cd", "%#%%", '#', true);
  testLike("cde", "%#%%", '#', false);
```

Add ut to cover the case:
```
  testLike("///__", "%//%/%", '/', false);
```

Pull Request resolved: facebookincubator#11091

Reviewed By: Yuhta, amitkdutta

Differential Revision: D63395708

Pulled By: kagamiori

fbshipit-source-id: e5eb651695f27fe5ff88b72963aa70d4a550ba7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants