[ https://issues.apache.org/jira/browse/HIVE-12372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14996827#comment-14996827 ]
Hive QA commented on HIVE-12372: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12771355/HIVE-12372.1.patch {color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 5 failed/errored test(s), 9778 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_index_bitmap3 org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_stats_counter_partitioned org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_authorization_uri_import org.apache.hadoop.hive.hwi.TestHWISessionManager.testHiveDriver org.apache.hive.jdbc.TestSSL.testSSLVersion {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/5971/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/5971/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-5971/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 5 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12771355 - PreCommit-HIVE-TRUNK-Build > 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)