You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2011/04/07 07:52:05 UTC

[jira] [Updated] (PIG-1975) Need to provide backward compatibility for legacy LoadCaster (without bytesToMap(bytes, fieldSchema))

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

Daniel Dai updated PIG-1975:
----------------------------

    Attachment: PIG-1975-1.patch

No test added since it is impossible to make legacy LoadCaster compile in new code. Manual test success.

> Need to provide backward compatibility for legacy LoadCaster (without bytesToMap(bytes, fieldSchema))
> -----------------------------------------------------------------------------------------------------
>
>                 Key: PIG-1975
>                 URL: https://issues.apache.org/jira/browse/PIG-1975
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.9.0
>
>         Attachments: PIG-1975-1.patch
>
>
> Pig changed LoadCaster interface in 0.9 for typed map (PIG-1876). We change
> bytesToMap(byte[] b, ResourceFieldSchema fieldSchema)
> to
> bytesToMap(byte[] b)
> We should provide backward compatibility for old LoadCaster. If we don't find the new bytesToMap, we use the old bytesToMap to convert bytes to map with bytearray value. It is still wrong but at least matching the ability of old behavior.

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