-
Notifications
You must be signed in to change notification settings - Fork 454
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
[VL] Results are mismatch with vanilla Spark when use regexp_replace('a{bc', '\\{', '\\[') #6224
Comments
thanks @kecookier do you will help fix the issue ? |
Yes, I will work on this issue. |
@kecookier I also encountered this issue, the reason is differences in handling present situation
Gluten Velox RE2
Spark java.util.regex
|
@wang-zhun Sorry for the late reply, and thank you for the information. I have a work-in-progress PR that will fix this issue. |
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 views characters after "\\" as literal, i.e., using what it is after "\\". Can we just revise the replacement string to let Re2 do the correct replacement? |
@PHILO-HE Apologies for the delayed response. This PR attempts to fix the mismatch problems in |
facebookincubator/velox#10981 Already merged |
Backend
VL (Velox)
Bug description
Spark version
Spark-3.2.x
Spark configurations
No response
System information
Velox System Info v0.0.2
Commit: 3a459ab
CMake Version: 3.22.0
System: Linux-3.10.0-862.mt20190308.130.el7.x86_64
Arch: x86_64
CPU Name: Model name: Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
C++ Compiler: /opt/rh/devtoolset-9/root/usr/bin/c++
C++ Compiler Version: 9.3.1
C Compiler: /opt/rh/devtoolset-9/root/usr/bin/cc
C Compiler Version: 9.3.1
CMake Prefix Path: /usr/local;/usr;/;/usr/local/cmake;/usr/local;/usr/X11R6;/usr/pkg;/opt
Relevant logs
No response
The text was updated successfully, but these errors were encountered: