-
Notifications
You must be signed in to change notification settings - Fork 915
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
Plumb pylibcudf strings contains_re
through cudf_polars
#15918
Plumb pylibcudf strings contains_re
through cudf_polars
#15918
Conversation
literal, _ = self.options | ||
if literal: | ||
return Column(plc.strings.find.contains(column.obj, pattern.obj)) | ||
return Column(plc.strings.find.contains(column.obj, pattern.value)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for literal contains, can we support columns as patterns? libcudf does: https://docs.rapids.ai/api/libcudf/stable/group__strings__find#ga9acbc587765007c5e35811c07e990b03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supported this in e45fbed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @brandon-b-miller !
/merge |
This PR adds cudf-polars code for evaluating the
StringFunction.Contains
expression node.Depends on #15880