hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-14349) Vectorization: LIKE should anchor the regexes
Date Wed, 27 Jul 2016 05:14:20 GMT

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

Gopal V updated HIVE-14349:
---------------------------
    Release Note: Vectorization: LIKE should anchor the regexes
          Status: Patch Available  (was: Open)

[~mmccline]: can you please review?

> 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)

Mime
View raw message