thisisnic commented on a change in pull request #10190:
URL: https://github.com/apache/arrow/pull/10190#discussion_r624028652



##########
File path: r/R/dplyr.R
##########
@@ -410,6 +410,17 @@ build_function_list <- function(FUN) {
         options = list(null_encoding_behavior = null_encoding_behavior)
       )
     },
+    strsplit = function(x, split, fixed = FALSE, perl = FALSE, useBytes = 
FALSE){
+      
+      regex_metachars <- c(".", "\\", "|", "(", ")", "[", "{", "^", "$", "*", 
"+", "?")
+      is_regex <- any(map_lgl(regex_metachars, ~grepl(.x, split, fixed = 
TRUE)))
+      
+      # if !fixed but no regex metachars in split pattern, allow to proceed as 
split isn't regex
+      if(!fixed && is_regex || perl){
+        stop("regular expression matching not supported in strsplit for 
Arrow", call. = FALSE)
+      }

Review comment:
       Done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to