You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2016/07/27 00:43:20 UTC
[jira] [Updated] (HIVE-14349) Vectorization: LIKE should anchor the
regexes
[ 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)