Richard Ding updated PIG-1090:

    Attachment: PIG-1090-3.patch

This patch deals with conversions between Pig Schema and the new Resource 

Given a resource schema, one calls the folllowing static method of Schema to 
convert it to a Pig schema:

public static Schema getPigSchema(ResourceSchema rSchema) throws 

One the other hand, a Pig schema is converted to a Resource Schema by passing 
it to a resource schema constructor:

public ResourceSchema(Schema pigSchema) ;
One restriction for Resource Schema is that a Bag defined by Resource Schema 
must contain exactly one field of type Tuple. Ohterwise an exception will 
thrown during the conversion.

Here are results from a local 'test-patch' run:

     [exec] +1 overall.  
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec]     +1 tests included.  The patch appears to include 3 new or 
modified tests.
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning 
     [exec]     +1 javac.  The applied patch does not increase the total number 
of javac compiler warnings.
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs 
     [exec]     +1 release audit.  The applied patch does not increase the 
total number of release audit warnings.


> Update sources to reflect recent changes in load-store interfaces
> -----------------------------------------------------------------
>                 Key: PIG-1090
>                 URL: https://issues.apache.org/jira/browse/PIG-1090
>             Project: Pig
>          Issue Type: Sub-task
>            Reporter: Pradeep Kamath
>            Assignee: Pradeep Kamath
>         Attachments: PIG-1090-2.patch, PIG-1090-3.patch, PIG-1090.patch
> There have been some changes (as recorded in the Changes Section, Nov 2 2009 
> sub section of http://wiki.apache.org/pig/LoadStoreRedesignProposal) in the 
> load/store interfaces - this jira is to track the task of making those 
> changes under src. Changes under test will be addresses in a different jira.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to