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

Switch to Threaded View
Pig, mail # user - Unit test for Pig UDF using DistributedCache

Copy link to this message
Re: Unit test for Pig UDF using DistributedCache
David LaBarbera 2014-02-10, 15:31
One approach is to separate your code from the pig wrapper. That way you
only need to unit test your business logic.
An example would be something like

public class wrapperUdf extends EvalFunc {
  public Integer exec() {

  public List<String> getCachedFiles {

public class foo {
  public Integer exec() {
You can write unit test just again foo and leave UDF testing to
component/functional testing.


On 10 Feb 2014, at 3:08, [EMAIL PROTECTED] wrote: