pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunitha Muralidharan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2880) Pig current releases lack a UDF charAt.This UDF returns the char value at the specified index.
Date Wed, 03 Oct 2012 13:40:07 GMT

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

Sunitha Muralidharan commented on PIG-2880:
-------------------------------------------

Hi..
Thanks for your response. This UDF will output a character at the specified index.
For this UDF, we need two inputs. first one will be the string and the second one will be
an index position. So in such situation, can we use PrimitiveEvalFunc<String,String>?
                
> Pig current releases lack a UDF charAt.This UDF returns the char value at the specified
index.
> ----------------------------------------------------------------------------------------------
>
>                 Key: PIG-2880
>                 URL: https://issues.apache.org/jira/browse/PIG-2880
>             Project: Pig
>          Issue Type: New Feature
>          Components: piggybank
>    Affects Versions: 0.10.0
>            Reporter: Sabir Ayappalli
>
> Pig current releases lack a UDF charAt.This UDF returns the char value at the specified
index. An index ranges from 0 to length() - 1. The first char value of the sequence is at
index 0, the next at index 1, and so on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message