Skip to content

Fix strings::contains matching end of string target - #14711

Merged
rapids-bot[bot] merged 1 commit into
NVIDIA:branch-24.02from
davidwendt:fix-contains-end-match
Jan 5, 2024
Merged

Fix strings::contains matching end of string target#14711
rapids-bot[bot] merged 1 commit into
NVIDIA:branch-24.02from
davidwendt:fix-contains-end-match

Conversation

@davidwendt

Copy link
Copy Markdown
Contributor

Description

Fixes bug in cudf::strings::contains where the target matches the end of the string. This only occurred in the long strings special kernel logic for contains.
Also added additional gtests for long and short strings and for related functions find/rfind.

Closes #14710

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added bug Something isn't working 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. strings strings issues (C++ and Python) non-breaking Non-breaking change labels Jan 4, 2024
@davidwendt davidwendt self-assigned this Jan 4, 2024
@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Jan 5, 2024
@davidwendt
davidwendt marked this pull request as ready for review January 5, 2024 14:54
@davidwendt
davidwendt requested a review from a team as a code owner January 5, 2024 14:54
@davidwendt

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 4de4aae into NVIDIA:branch-24.02 Jan 5, 2024
@davidwendt
davidwendt deleted the fix-contains-end-match branch January 5, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change strings strings issues (C++ and Python)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] strings::contains does not work if the input is large and the scalar search only matches at the end

4 participants