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

Switch to Plain View
Pig >> mail # user >> PIG UDFs for parsing UserAgents

Niels Basjes 2013-04-20, 22:09
Copy link to this message
Re: PIG UDFs for parsing UserAgents
Hi Niels,

To write unit tests you could take a look at TestBuiltin.java which has a
tests for several UDFs -

Also, you can mock up input/ouput data using

On Sat, Apr 20, 2013 at 3:09 PM, Niels Basjes <[EMAIL PROTECTED]> wrote:

> Hi,
> I created an addition to the ua-parser project (
> https://github.com/tobie/ua-parser ) so that the methods for parsing a
> useragent can be called as a UDF from Pig.
> https://github.com/nielsbasjes/ua-parser/tree/PIGSupport/pig
> One of the things I'm a bit worried about is that I have no idea on how to
> create a junit test for this.
> So I would really appreciate it if someone from the pig community could
> have a look at it before I submit a pull request.
> Thanks.
> --
> Best regards / Met vriendelijke groeten,
> Niels Basjes
Niels Basjes 2013-04-20, 22:35