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

Koji Noguchi updated PIG-4974:
------------------------------
    Attachment: pig-4974-type1-v01.patch

>From simple to complex, I can think of a couple of ways of fixing this.

(1) Take IdentityColumn UDF as a special case and forward loadcaster  from the 
argument.   Attaching a patch for this (pig-4974-type1-v01.patch).

(2) Extend (1)  and include any UDF that returns true for {{forwardLoadCaster}} 
boolean method.  This may help for udf like MapToBag discussed in PIG-3938.

(3) Extend (2) to allow udf to specify its own loadcaster. 

I don't want to go to (3) for now.  [~daijy], let me know your thoughts on this.

> A simple map reference fail to cast
> -----------------------------------
>
>                 Key: PIG-4974
>                 URL: https://issues.apache.org/jira/browse/PIG-4974
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Koji Noguchi
>            Assignee: Koji Noguchi
>         Attachments: pig-4974-type1-v01.patch
>
>
> {code}
> A = load 'input.txt' as (m:[bytearray]);
> B = FOREACH A GENERATE m#'a' as a, m#'e' as e;
> C = FILTER B by a != 'abc' and e != 'abc';
> store C into 'output';
> {code}
> This fails with 
> {panel}
> Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 1075: 
> Received a bytearray from the UDF or Union from two different Loaders. Cannot 
> determine how to convert the bytearray to string
> {panel}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to