You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/01/09 11:29:20 UTC
[jira] [Commented] (HIVE-2714) Lots of special characters are not
handled in LIKE
[ https://issues.apache.org/jira/browse/HIVE-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548145#comment-13548145 ]
Hudson commented on HIVE-2714:
------------------------------
Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/])
HIVE-2714. Lots of special characters are not handled in LIKE. (jonchang via kevinwilfong) (Revision 1299948)
Result = ABORTED
kevinwilfong : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1299948
Files :
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java
* /hive/trunk/ql/src/test/queries/clientpositive/udf_like.q
* /hive/trunk/ql/src/test/results/clientpositive/udf_like.q.out
> Lots of special characters are not handled in LIKE
> --------------------------------------------------
>
> Key: HIVE-2714
> URL: https://issues.apache.org/jira/browse/HIVE-2714
> Project: Hive
> Issue Type: Bug
> Reporter: Jonathan Chang
> Assignee: Jonathan Chang
> Fix For: 0.9.0
>
> Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2714.D1239.1.patch, HIVE-2714.D1239.1.patch
>
>
> Currently LIKE converts the string to a regular expression. It tries to handle special characters but many are not correctly handled, e.g. +, ?, |, etc. That code should just use Pattern.quote.
--
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