You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Shinichi Yamashita (JIRA)" <ji...@apache.org> on 2015/11/09 15:37:11 UTC
[jira] [Updated] (HIVE-12372) Improve to support the multibyte
character at lpad and rpad
[ https://issues.apache.org/jira/browse/HIVE-12372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shinichi Yamashita updated HIVE-12372:
--------------------------------------
Attachment: HIVE-12372.1.patch
I attach a patch file.
> 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: udf
> Attachments: HIVE-12372.1.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)