pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy V. Ryaboy (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 17:36:07 GMT

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

Dmitriy V. Ryaboy commented on PIG-2880:
----------------------------------------

Ah, forgot about the second argument. In that case, just take care of nulls, wrong # or type
of arguments, etc, in your code.

Also note you can provide the @OutputSchema annotation to tell Pig what to expect to come
out of this UDF.
                
> 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