jython - problem with single item tuple in bag
----------------------------------------------

                 Key: PIG-2098
                 URL: https://issues.apache.org/jira/browse/PIG-2098
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.8.1, 0.9.0
            Reporter: Vivek Padmanabhan


While using phython udf, if I create a tuple with a single field, Pig execution 
fails with ClassCastException.

Caused by: java.io.IOException: Error executing function: 
org.apache.pig.backend.executionengine.ExecException: ERROR 0: Cannot convert 
jython type to pig datatype java.lang.ClassCastException: java.lang.String 
cannot be cast to org.apache.pig.data.Tuple
        at 
org.apache.pig.scripting.jython.JythonFunction.exec(JythonFunction.java:111)
        at 
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNext(POUserFunc.java:245)


An example to reproduce the issuue ;




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

Reply via email to