hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12372) Improve to support the multibyte character at lpad and rpad
Date Tue, 29 Dec 2015 18:00:52 GMT

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

Ashutosh Chauhan commented on HIVE-12372:
-----------------------------------------

+1 Latest patch on RB looks good. Can you also attach it here so that QA can run on it?

> 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, HIVE-12372.2.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)

Mime
View raw message