You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Gwen Shapira (JIRA)" <ji...@apache.org> on 2013/03/15 22:10:13 UTC

[jira] [Commented] (HIVE-4070) Like operator in Hive is case sensitive while in MySQL (and most likely other DBs) it's case insensitive

    [ https://issues.apache.org/jira/browse/HIVE-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13603853#comment-13603853 ] 

Gwen Shapira commented on HIVE-4070:
------------------------------------

Oracle's "LIKE" (as well as any other char/varchar comparison) is case sensitive.
No matter how HiveQL behaves it can't be consistent with every SQL implementation out there. 
                
> Like operator in Hive is case sensitive while in MySQL (and most likely other DBs) it's case insensitive
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-4070
>                 URL: https://issues.apache.org/jira/browse/HIVE-4070
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 0.10.0
>            Reporter: Mark Grover
>            Assignee: Mark Grover
>             Fix For: 0.11.0
>
>
> Hive's like operator seems to be case sensitive.
> See https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java#L164
> However, MySQL's like operator is case insensitive. I don't have other DB's (like PostgreSQL) installed and handy but I am guessing their LIKE is case insensitive as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira