[BUG] regexp_replace with replacement string containing \
can produce incorrect results
#4559
Labels
bug
Something isn't working
\
can produce incorrect results
#4559
Describe the bug
There are differences in behavior between CPU and GPU in some cases when using
regexp_replace
and a replacement string that contains the backslash character,The expression
regexp_replace(strings,'[a-z]+','\\\\WORD')
will replace matches withWORD
on the CPU and with\WORD
on the GPU.Steps/Code to reproduce bug
Add this test to
RegularExpressionsSuite.scala
Expected behavior
Behavior should be consistent between CPU and GPU.
Environment details (please complete the following information)
N/A
Additional context
None
The text was updated successfully, but these errors were encountered: