You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Keuntae Park (JIRA)" <ji...@apache.org> on 2013/12/03 16:16:36 UTC

[jira] [Comment Edited] (TAJO-359) Implement lpad function

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

Keuntae Park edited comment on TAJO-359 at 12/3/13 3:15 PM:
------------------------------------------------------------

However, it looks that org.apache.commons-lang.StringUtils::leftPad() works differently from lpad() specified in http://www.postgresql.org/docs/9.1/static/functions-string.html
When the string is longer than the given length, lpad() truncates the string but org.apache.commons-lang.StringUtils::leftPad() just return the string (http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#leftPad(java.lang.String,%20int,%20java.lang.String).



was (Author: sirpkt):
However, it looks that org.apache.commons-lang.StringUtils::leftPad() works differently from lpad() specified in http://www.postgresql.org/docs/9.1/static/functions-string.html
When the string is already longer than the given length, lpad() truncates the string but org.apache.commons-lang.StringUtils::leftPad() just return the string.


> Implement lpad function
> -----------------------
>
>                 Key: TAJO-359
>                 URL: https://issues.apache.org/jira/browse/TAJO-359
>             Project: Tajo
>          Issue Type: New Feature
>            Reporter: Seungun Choe
>            Assignee: Seungun Choe
>            Priority: Minor
>         Attachments: TAJO-359.patch, TAJO-359_1.patch, TAJO-359_2.patch, TAJO-359_3.patch
>
>
> I'd like to lmplement this function.
> Plz assign to me :)



--
This message was sent by Atlassian JIRA
(v6.1#6144)