hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <>
Subject [jira] [Created] (HIVE-14349) Vectorization: LIKE should anchor the regexes
Date Tue, 26 Jul 2016 23:54:20 GMT
Gopal V created HIVE-14349:

             Summary: Vectorization: LIKE should anchor the regexes
                 Key: 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

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;
Time taken: 4.029 seconds, Fetched: 2 row(s)

This message was sent by Atlassian JIRA

View raw message