pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Goodhope (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-1890) Fix piggybank unit test TestAvroStorage
Date Sun, 15 May 2011 21:36:47 GMT

    [ https://issues.apache.org/jira/browse/PIG-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033822#comment-13033822

Ken Goodhope commented on PIG-1890:

For testArrayDefault, we are attempting to return an entire avro array, which is consistent
with the schema.  The result is tuple with one column, a bag of floats".  In POProject.getNext(Tuple),
tuples with one column have their single column extracted, cast to a tuple, and then returned.
 Obviously in this case, this results in trying to cast the bag of floats into a tuple and
an exception being thrown.

Does anyone know why this is being done in POProject?

> 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
>             Fix For: 0.9.0
>         Attachments: PIG-1890-1.patch
> 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

View raw message