[ 
https://issues.apache.org/jira/browse/HIVE-14349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gopal V updated HIVE-14349:
---------------------------
    Attachment: HIVE-14349.1.patch

> Vectorization: LIKE should anchor the regexes
> ---------------------------------------------
>
>                 Key: HIVE-14349
>                 URL: https://issues.apache.org/jira/browse/HIVE-14349
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF, Vectorization
>    Affects Versions: 1.2.1, 2.2.0
>            Reporter: Gopal V
>            Assignee: Gopal V
>             Fix For: 1.3.0, 2.2.0, 2.1.1
>
>         Attachments: HIVE-14349.1.patch
>
>
> RLIKE works like contains() and LIKE works like matches().
> The UDFLike LIKE -> Regex conversion returns unanchored regexes making the 
> vectorized LIKE behave like RLIKE.
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to