You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate the multi-patterns cudf::strings::replace_re API (#22380)
Deprecates the `cudf::strings::replace_re` function that accepts multiple regex patterns and replacements. This API does not follow the other regex API which all accept a `regex_program` parameter and has become difficult to maintain. This function pattern is not support by Pandas and there is no JNI wrapper for it either.
After trying to create a libcudf benchmark for this API, it was found the function crashes if called with more than a few dozen rows even with only 2 patterns. The crash is due to a bug in the code which has never been reported (the bug was introduced 4 years ago according to git). Therefore, I have complete confidence that this API has never been used and can be removed in a future release.
The gtests have also been removed to prevent deprecation warnings.
This PR also includes a fix for the bug for completeness.
Authors:
- David Wendt (https://github.com/davidwendt)
Approvers:
- Matthew Roeschke (https://github.com/mroeschke)
- Bradley Dice (https://github.com/bdice)
- Lawrence Mitchell (https://github.com/wence-)
- Yunsong Wang (https://github.com/PointKernel)
URL: #22380
0 commit comments