Pavel Fedyakov created PIG-3596:
-----------------------------------

             Summary: Bytearray cannot be casted after UDF
                 Key: PIG-3596
                 URL: https://issues.apache.org/jira/browse/PIG-3596
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.11
         Environment: CDH4.4.0
            Reporter: Pavel Fedyakov


If file is loaded by PigStorage without schema every variable is bytearray. It 
can be casted to other types. After processing with UDF the result cannot be 
casted anymore.

Meaningful example:

in:
{code}1
1       2
1       2       3{code}

script:
{code}a = load 'in';
b = foreach a generate flatten(TOBAG($0..)) as x;
c = foreach b generate (int)x * (int)x;
dump c;{code}

ERROR 1052: Cannot cast bytearray to int




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to