[ https://issues.apache.org/jira/browse/PIG-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989789#comment-12989789 ]
Jonathan Coveney commented on PIG-1826: --------------------------------------- MutableInt is defined as such: package squeal.com; public class MutableInt { int value; public MutableInt() { value = 1; } public MutableInt(int val) { value = val; } public void inc() { ++value; } public void inc(int val) { value += val; } public int get() { return value; } public String toString() { return (new Integer(value)).toString(); } } Just a dumb wrapper class to avoid having to do another put after getting from a Map. it is failing on a trivial example: 1 a 1 b 1 c 2 a 2 b 2 c 3 a 3 b 3 c > Unexpected data type -1 found in stream error > --------------------------------------------- > > Key: PIG-1826 > URL: https://issues.apache.org/jira/browse/PIG-1826 > Project: Pig > Issue Type: Bug > Affects Versions: 0.8.0 > Environment: This is pig 0.8.0 on a linux box > Reporter: Jonathan Coveney > Attachments: numgraph.java > > > When running the attached udf I get the title error. By inserting printlns > extensively, the script is functioning properly and returning a DataBag, but > for whatever reason, pig does not detect it as such. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira