Anatoliy Bazko created PIG-3068:
-----------------------------------

             Summary: Wrong length is used into DataByteArray to load data
                 Key: PIG-3068
                 URL: https://issues.apache.org/jira/browse/PIG-3068
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.10.0
            Reporter: Anatoliy Bazko


Hi. I've investigated your code

{code}
    public DataByteArray(byte[] b, int start, int end) {
        
    System.arraycopy(b, start, mData = new byte[end - start], 0, end-start);
    }
{code}

The correct length should be
{code}
end-start+1
{code}

otherwise the last character is omitted

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

Reply via email to