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

[jira] [Commented] (HIVE-4100) Improve regex_replace UDF to allow non-ascii characters

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

thattommyhall commented on HIVE-4100:
-------------------------------------

The particular case I had was
regexp_replace(some_column,"[^\\u0000-\\uffff]","\ufffd")
does not work, whereas 
regexp_replace(some_column,"[^\\u0000-\\uffff]","�")
does.

So we need a way to specify unicode chars in the replace string.
                
> Improve regex_replace UDF to allow non-ascii characters
> -------------------------------------------------------
>
>                 Key: HIVE-4100
>                 URL: https://issues.apache.org/jira/browse/HIVE-4100
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>    Affects Versions: 0.10.0
>            Reporter: Mark Grover
>            Assignee: Mark Grover
>             Fix For: 0.11.0
>
>
> There have a been a few email threads on the user mailing list regarding regex_replace UDF not supporting non-ASCII characters. We should validate that and improve the UDF to allow it. Translate UDF will be a good reference since it does that by using code points instead of characters

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