You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2013/04/25 18:52:16 UTC

[jira] [Reopened] (PIG-3164) Pig current releases lack a UDF endsWith.This UDF tests if a given string ends with the specified suffix.

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

Alan Gates reopened PIG-3164:
-----------------------------


Backed these changes out; I should never have checked them in.  I missed that this was only in test and not in main, so I ended up compiling the wrong thing to make sure this worked.

UDFs should not be added under piggybank/java/src/test.  That's for unit tests for the UDF.  The UDFs should be under piggybank/java/src/main.  

Thanks Niels for catching my mistake.
                
> Pig current releases lack a UDF endsWith.This UDF tests if a given string ends with the specified suffix.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-3164
>                 URL: https://issues.apache.org/jira/browse/PIG-3164
>             Project: Pig
>          Issue Type: New Feature
>          Components: piggybank
>    Affects Versions: 0.10.0
>            Reporter: Anuroopa George
>            Assignee: Anuroopa George
>             Fix For: 0.12
>
>         Attachments: ENDSWITH.java.patch, ENDSWITH_updated.java
>
>
> Pig current releases lack a UDF endsWith.This UDF tests if a given string  ends with the specified suffix.This UDF returns true if the character sequence represented by the string argument given as a suffix is a suffix of the character sequence represented by the given string; false otherwise.Also true will be returned if the given suffix is an empty string or is equal to the given String.

--
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