You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "PHILO-HE (via GitHub)" <gi...@apache.org> on 2024/07/04 02:30:14 UTC

Re: [I] [VL] Results are mismatch with vanilla Spark when use regexp_replace('a{bc', '\\{', '\\[') [incubator-gluten]

PHILO-HE commented on issue #6224:
URL: https://github.com/apache/incubator-gluten/issues/6224#issuecomment-2207890612

   Posting code where re2 error happens for replacement string with "\\\\": https://github.com/google/re2/blob/6dcd83d60f7944926bfd308cc13979fc53dd69ca/re2/re2.cc#L1053.
   
   While [java.util.regex.Matcher](https://github.com/frohoff/jdk8u-dev-jdk/blob/master/src/share/classes/java/util/regex/Matcher.java#L812) views characters after "\\\\" as literal, i.e., using what it is after "\\\\".
   
   Can we just change the replacement string to let Re2 do the correct replacement?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org