[ https://issues.apache.org/jira/browse/PIG-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060700#comment-13060700 ]
Patrick Hunt commented on PIG-1890: ----------------------------------- @Dmitriy thanks. bq. Patrick, can you show some debug output that has the sequence of calls? Sure, I didn't save the original so I re-ran it, see attached (pig_setloc_avro.txt) for full details using the UNION example (this is with current trunk - notice that there are 6 tuples output rather than 2). I mis-remembered one detail - it's calling setLoc for the same job, with different files, but _different_ AvroStorage objects. (see first two lines of setLocation debug message). Why are there 8 AvroStorage objects being created, shouldn't there just be 2, one for loading each of the two input files? > Fix piggybank unit test TestAvroStorage > --------------------------------------- > > Key: PIG-1890 > URL: https://issues.apache.org/jira/browse/PIG-1890 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.9.0 > Reporter: Daniel Dai > Assignee: Jakob Homan > Attachments: PIG-1890-1.patch, PIG-1890-2.patch, PIG-1890-3.patch, > pig_setloc_avro.txt > > > TestAvroStorage fail on trunk. There are two reasons: > 1. After PIG-1680, we call LoadFunc.setLocation one more time. > 2. The schema for AvroStorage seems to be wrong. For example, in first test > case testArrayDefault, the schema for "in" is set to "PIG_WRAPPER: (FIELD: > {PIG_WRAPPER: (ARRAY_ELEM: float)})". It seems PIG_WRAPPER is redundant. This > issue is hidden until PIG-1188 checked in. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira