You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "DaeMyung Kang (JIRA)" <ji...@apache.org> on 2013/12/01 18:09:35 UTC

[jira] [Updated] (TAJO-352) Implement right/left(text, size) function

     [ https://issues.apache.org/jira/browse/TAJO-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

DaeMyung Kang updated TAJO-352:
-------------------------------

    Attachment: TAJO-352.patch

Don't accept this patch. Here is two problems.

1. it is the same problem with substr, Parsing error 
2. when give function name to (left, right), it failed with parse.
 (I might think it is because of reserved keyword(left join or right join).

so. I changed function name left -> from_left, right -> from_right.
Thanks.

> Implement right/left(text, size) function
> -----------------------------------------
>
>                 Key: TAJO-352
>                 URL: https://issues.apache.org/jira/browse/TAJO-352
>             Project: Tajo
>          Issue Type: Sub-task
>          Components: operator/function/udf
>            Reporter: DaeMyung Kang
>            Assignee: DaeMyung Kang
>            Priority: Minor
>             Fix For: 0.8-incubating
>
>         Attachments: TAJO-352.patch
>
>
> left('abcdef', 1) ===> a
> left('abcdef', 2) ===> ab
> right('abcdef', 1) ===> f
> right('abcdef', 2) ===> ef



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