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

Lefty Leverenz commented on HIVE-12372:
---------------------------------------

Doc note:  This should be documented for release 2.0.0 in the wiki's 
descriptions of lpad and rpad.

* [Hive Operators and UDFs -- String Functions | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-StringFunctions]

> Improve to support the multibyte character at lpad and rpad
> -----------------------------------------------------------
>
>                 Key: HIVE-12372
>                 URL: https://issues.apache.org/jira/browse/HIVE-12372
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Shinichi Yamashita
>            Assignee: Shinichi Yamashita
>              Labels: TODOC2.0, udf
>             Fix For: 2.0.0
>
>         Attachments: HIVE-12372.1.patch, HIVE-12372.2.patch, 
> HIVE-12372.3.patch
>
>
> The current lpad and rpad don't support the multibyte character at "str" and 
> "pad".
> For example, we can see the following result.
> {code}
> hive> select name from sample1;
> OK
> tokyo
> TOKYO
> hive> select lpad(name, 20, '*') from sample1;
> OK
> ***************tokyo
> *****TOKYO
> {code}
> This is improved as follows.
> {code}
> hive> select lpad(name, 20, '*') from sample1;
> ***************tokyo
> ***************TOKYO
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to