-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[ArrowStringArray] use pyarrow.compute.match_substring_regex if available #41217
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
[ArrowStringArray] use pyarrow.compute.match_substring_regex if available #41217
Conversation
return super()._str_contains(pat, case, flags, na, regex) | ||
|
||
if regex: | ||
if hasattr(pc, "match_substring_regex") and case: |
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.
Maybe it would be good to add a comment like "added in pyarrow x.x", so we can more easily clean up those hasattr
checks if we later raise the minimum version
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.
yes. I was thinking the same to address #41219 (comment)
follow-up to #41025