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

Switch to Plain View
Pig >> mail # user >> STORE skipped in pigUnit test?


+
Yang 2013-03-15, 22:22
+
meghana narasimhan 2013-03-15, 22:31
Copy link to this message
-
Re: STORE skipped in pigUnit test?
thanks!
On Fri, Mar 15, 2013 at 3:31 PM, meghana narasimhan <
[EMAIL PROTECTED]> wrote:

> You need to unoverride STORE using :  t.unoverride("STORE");
>
> On Fri, Mar 15, 2013 at 3:22 PM, Yang <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to test a custom LOAD class, which also contains the code for
> > STORE.
> >
> > I put in a STORE in my pigUnit script. but the resulting file is never
> > created.
> >
> > is STORE always skipped in pigUnit?  in my case I'm not even checking the
> > corresponding var to be stored in my pigUnit code. i.e. my pig script is
> > like:
> >
> > input = load ....
> >
> > output_var = foreach input generate ....
> >
> > STORE output_var INTO ..... USING MyCustomLoad();
> >
> >
> >
> > my junit is like:
> >
> >
> > PigTest t = new PigTest("src/test/resources/my_test.pig");
> >
> > t.assertOutput("input", new String[]{ "(123,456)" }
> >
> >
> >
> >
> > Thanks
> > Yang
> >
>