You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Bennie Schut (JIRA)" <ji...@apache.org> on 2009/06/30 15:56:47 UTC

[jira] Updated: (PIG-868) indexof / lastindexof / lower / replace / substring udf's

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

Bennie Schut updated PIG-868:
-----------------------------

    Attachment: addSomeUDFsPatch.patch

Some udf's including unittests.

> indexof / lastindexof / lower / replace / substring udf's
> ---------------------------------------------------------
>
>                 Key: PIG-868
>                 URL: https://issues.apache.org/jira/browse/PIG-868
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Bennie Schut
>            Priority: Trivial
>         Attachments: addSomeUDFsPatch.patch
>
>
> We parse some apache logs using pig and are using some pretty simple udf's like this:
> B = FOREACH A GENERATE substring(uri, lastindexof(uri, '/')+1, indexof(uri, '.txt')) as lang;
> It's pretty simple stuff but I figured someone else might find it useful.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.