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

Deepak Kumar V updated PIG-1885:
--------------------------------

    Release Note: 
Fix has been tested with 0.9.0 source. 
(http://svn.apache.org/repos/asf/pig/trunk/)
JUnit test case included.
Created a individual test cases for each scenario. This way its clear that 
SUBSTRING has been tested with different scenarios , also the same is reflected 
in test reports. Otherwise having all the scenarios within a single test case, 
does not reflect the various scenarios that a given api has been tested with.

  was:Fix has been tested with 0.9.0 source.

          Status: Patch Available  (was: Open)

> SUBSTRING fails when input length less than start
> -------------------------------------------------
>
>                 Key: PIG-1885
>                 URL: https://issues.apache.org/jira/browse/PIG-1885
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Alan Gates
>            Assignee: Deepak Kumar V
>            Priority: Minor
>             Fix For: 0.9.0
>
>         Attachments: PIG-1885.txt, PIG-1885.txt
>
>
> SUBSTRING throws an error if it gets a string which has a length less than 
> its start value.  For example, SUBSTRING(x, 100, 120) will fail with any 
> chararray of length less than 100.  It should return null instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to