Jeff Zhang updated PIG-936:

    Attachment: Pig_936.Patch

Thank you for your review and suggestion. 
1. I add one class BagFormat, because Tuple maybe have DataBag as its field, 
And like Tuple, DataBag also has different implementation,so call toString() on 
DataBag is not enough.

2. And I put the BagFormat and TupleFormat in package org.apache.pig.impl.util. 
 I am not sure whether this is the right package I should put.

> making dump and PigDump independent from Tuple.toString
> -------------------------------------------------------
>                 Key: PIG-936
>                 URL: https://issues.apache.org/jira/browse/PIG-936
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Olga Natkovich
>            Assignee: Jeff Zhang
>             Fix For: 0.4.0
>         Attachments: Pig_936.Patch
> Since Tuple is an interface, a toString implementation can change from one 
> tuple implementation to the next. This means that format of dump and PigDump 
> will be different depending on the tuples processed. This could be quite 
> confusing to the users.

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