Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Pigify Data Input to UDF for Unit Testing


Copy link to this message
-
Re: Pigify Data Input to UDF for Unit Testing
Bumping, and improving simplicity of the use case.

In Java, with a filled DataBag bag, invoke a SerDe like operation, such
that:

Assume DataBag bag instantiated and filled;
String bag_string = bag.toString();
DataBag new_bag = some_deserializer(bag_string);
new_bag.equals(bag) returns true;

Does there exist an ots method or process 'some_deserializer()' to go from
the .toString String back to an org.apache.pig.data.DataBag?

Many Thanks!