Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1, 2.2.0
-
None
-
Vectorization: LIKE should anchor the regexes
Description
RLIKE works like contains() and LIKE works like matches().
The UDFLike LIKE -> Regex conversion returns unanchored regexes making the vectorized LIKE behave like RLIKE.
create temporary table x (a string) stored as orc; insert into x values('XYZa'), ('badXYZa'); select * from x where a LIKE 'XYZ%a%' order by 1; OK XYZa badXYZa Time taken: 4.029 seconds, Fetched: 2 row(s)
Attachments
Attachments
Issue Links
- is related to
-
HIVE-14318 Vectorization: LIKE should use matches() instead of find(0)
- Resolved
- requires
-
HIVE-13196 UDFLike: reduce Regex NFA sizes
- Closed