You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Dave Wellman <da...@tynt.com> on 2010/10/20 16:58:09 UTC
JUnit & Pig Script
All,
I have a solution for writing unit test in Java to test pig scripts including stats and output if anyone is interested.
Re: JUnit & Pig Script
Posted by Romain Rigaux <ro...@gmail.com>.
Yes it was started with 0.7 and improved for 0.8. It is based on GruntParser
and PigServer interfaces which did not change too much I think and it is
rather simple overall.
We did a recent
cleanup<https://issues.apache.org/jira/browse/PIG-1600?focusedCommentId=12922785&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12922785>
and
there is some XML<http://svn.apache.org/viewvc/pig/branches/branch-0.8/src/docs/src/documentation/content/xdocs/pigunit.xml?view=markup>documentation.
Feel free to post your solution. We can work and see how we could integrate
it or if it is better.
Romain
On Wed, Oct 20, 2010 at 1:56 PM, Dave Wellman <da...@tynt.com> wrote:
> Excellent suggestion Dmitriy, Thanks.
>
> On Oct 20, 2010, at 11:58 AM, Dmitriy Ryaboy wrote:
>
> > At least the earlier versions of the PigUnit patch should work with 0.7
> >
> > Regardless, Dave, please post your contribution to the JIRA, or better
> > yet see if it can be integrated with PigUnit if it and your work are
> > complementary.
> >
> > -D
> >
> > On Wed, Oct 20, 2010 at 10:27 AM, Josh Devins <in...@joshdevins.net>
> wrote:
> >> No idea, haven't used it myself yet. I just remember seeing the Jira
> issue
> >> go by. There's patches attached to the issue so it might be
> back-portable.
> >>
> >> But either way, please share!
> >>
> >> Josh
> >>
> >>
> >> On 20 October 2010 18:46, Dave Wellman <da...@tynt.com> wrote:
> >>
> >>> Can it patch to Pig 6 & Pig 7 or is it a Pig 8 solution?
> >>>
> >>> On Oct 20, 2010, at 10:22 AM, Josh Devins wrote:
> >>>
> >>>> You might want to also have a look at Pig trunk/0.8.0 since there's
> >>> already
> >>>> some work been done on this topic.
> >>>>
> >>>> https://issues.apache.org/jira/browse/PIG-1404
> >>>>
> >>>> Cheers,
> >>>>
> >>>> Josh
> >>>>
> >>>>
> >>>> On 20 October 2010 16:58, Dave Wellman <da...@tynt.com> wrote:
> >>>>
> >>>>> All,
> >>>>>
> >>>>> I have a solution for writing unit test in Java to test pig scripts
> >>>>> including stats and output if anyone is interested.
> >>>
> >>>
> >>
>
>
Re: JUnit & Pig Script
Posted by Dave Wellman <da...@tynt.com>.
Excellent suggestion Dmitriy, Thanks.
On Oct 20, 2010, at 11:58 AM, Dmitriy Ryaboy wrote:
> At least the earlier versions of the PigUnit patch should work with 0.7
>
> Regardless, Dave, please post your contribution to the JIRA, or better
> yet see if it can be integrated with PigUnit if it and your work are
> complementary.
>
> -D
>
> On Wed, Oct 20, 2010 at 10:27 AM, Josh Devins <in...@joshdevins.net> wrote:
>> No idea, haven't used it myself yet. I just remember seeing the Jira issue
>> go by. There's patches attached to the issue so it might be back-portable.
>>
>> But either way, please share!
>>
>> Josh
>>
>>
>> On 20 October 2010 18:46, Dave Wellman <da...@tynt.com> wrote:
>>
>>> Can it patch to Pig 6 & Pig 7 or is it a Pig 8 solution?
>>>
>>> On Oct 20, 2010, at 10:22 AM, Josh Devins wrote:
>>>
>>>> You might want to also have a look at Pig trunk/0.8.0 since there's
>>> already
>>>> some work been done on this topic.
>>>>
>>>> https://issues.apache.org/jira/browse/PIG-1404
>>>>
>>>> Cheers,
>>>>
>>>> Josh
>>>>
>>>>
>>>> On 20 October 2010 16:58, Dave Wellman <da...@tynt.com> wrote:
>>>>
>>>>> All,
>>>>>
>>>>> I have a solution for writing unit test in Java to test pig scripts
>>>>> including stats and output if anyone is interested.
>>>
>>>
>>
Re: JUnit & Pig Script
Posted by Dmitriy Ryaboy <dv...@gmail.com>.
At least the earlier versions of the PigUnit patch should work with 0.7
Regardless, Dave, please post your contribution to the JIRA, or better
yet see if it can be integrated with PigUnit if it and your work are
complementary.
-D
On Wed, Oct 20, 2010 at 10:27 AM, Josh Devins <in...@joshdevins.net> wrote:
> No idea, haven't used it myself yet. I just remember seeing the Jira issue
> go by. There's patches attached to the issue so it might be back-portable.
>
> But either way, please share!
>
> Josh
>
>
> On 20 October 2010 18:46, Dave Wellman <da...@tynt.com> wrote:
>
>> Can it patch to Pig 6 & Pig 7 or is it a Pig 8 solution?
>>
>> On Oct 20, 2010, at 10:22 AM, Josh Devins wrote:
>>
>> > You might want to also have a look at Pig trunk/0.8.0 since there's
>> already
>> > some work been done on this topic.
>> >
>> > https://issues.apache.org/jira/browse/PIG-1404
>> >
>> > Cheers,
>> >
>> > Josh
>> >
>> >
>> > On 20 October 2010 16:58, Dave Wellman <da...@tynt.com> wrote:
>> >
>> >> All,
>> >>
>> >> I have a solution for writing unit test in Java to test pig scripts
>> >> including stats and output if anyone is interested.
>>
>>
>
Re: JUnit & Pig Script
Posted by Josh Devins <in...@joshdevins.net>.
No idea, haven't used it myself yet. I just remember seeing the Jira issue
go by. There's patches attached to the issue so it might be back-portable.
But either way, please share!
Josh
On 20 October 2010 18:46, Dave Wellman <da...@tynt.com> wrote:
> Can it patch to Pig 6 & Pig 7 or is it a Pig 8 solution?
>
> On Oct 20, 2010, at 10:22 AM, Josh Devins wrote:
>
> > You might want to also have a look at Pig trunk/0.8.0 since there's
> already
> > some work been done on this topic.
> >
> > https://issues.apache.org/jira/browse/PIG-1404
> >
> > Cheers,
> >
> > Josh
> >
> >
> > On 20 October 2010 16:58, Dave Wellman <da...@tynt.com> wrote:
> >
> >> All,
> >>
> >> I have a solution for writing unit test in Java to test pig scripts
> >> including stats and output if anyone is interested.
>
>
Re: JUnit & Pig Script
Posted by Dave Wellman <da...@tynt.com>.
Can it patch to Pig 6 & Pig 7 or is it a Pig 8 solution?
On Oct 20, 2010, at 10:22 AM, Josh Devins wrote:
> You might want to also have a look at Pig trunk/0.8.0 since there's already
> some work been done on this topic.
>
> https://issues.apache.org/jira/browse/PIG-1404
>
> Cheers,
>
> Josh
>
>
> On 20 October 2010 16:58, Dave Wellman <da...@tynt.com> wrote:
>
>> All,
>>
>> I have a solution for writing unit test in Java to test pig scripts
>> including stats and output if anyone is interested.
Re: JUnit & Pig Script
Posted by Josh Devins <in...@joshdevins.net>.
You might want to also have a look at Pig trunk/0.8.0 since there's already
some work been done on this topic.
https://issues.apache.org/jira/browse/PIG-1404
Cheers,
Josh
On 20 October 2010 16:58, Dave Wellman <da...@tynt.com> wrote:
> All,
>
> I have a solution for writing unit test in Java to test pig scripts
> including stats and output if anyone is interested.
RE: JUnit & Pig Script
Posted by Brian Adams <Br...@chacha.com>.
I think everyone would be fairly interested....
-----Original Message-----
From: Dave Wellman [mailto:dave@tynt.com]
Sent: Wednesday, October 20, 2010 10:58 AM
To: user@pig.apache.org
Subject: JUnit & Pig Script
All,
I have a solution for writing unit test in Java to test pig scripts
including stats and output if anyone is interested.
Re: JUnit & Pig Script
Posted by Matt Davies <ma...@mattdavies.net>.
me, me me. you rock. thanks!
----- Original Message -----
From: "Dave Wellman" <da...@tynt.com>
To: user@pig.apache.org
Sent: Wednesday, October 20, 2010 8:58:09 AM
Subject: JUnit & Pig Script
All,
I have a solution for writing unit test in Java to test pig scripts including stats and output if anyone is interested.