Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Try the following in SQL shell:
select '\\\\' like '%\\%';
It returned false, which is wrong.
A false-negative considered previously:
select '\\\\' rlike '.*\\\\\\\\.*';
It returned true, which is correct if we assume that the pattern is treated as a Java string but not raw string.
Attachments
Issue Links
- supercedes
-
SPARK-19555 Improve inefficient StringUtils.escapeLikeRegex() method
- Resolved
- links to