You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Max Von Tilden <ma...@yahoo.com> on 2013/09/04 20:19:00 UTC
Python UDFs with Pig (support for Filter functions?)
Quick question from a Pig noob...in 0.11 does Pig support developing filter functions developed in Python? Is there any documentation or examples that anyone knows of?
thx,
John
Re: Python UDFs with Pig (support for Filter functions?)
Posted by Aniket Mokashi <an...@gmail.com>.
https://cwiki.apache.org/confluence/display/PIG/UDFsUsingScriptingLanguages
Now that we have a boolean datatype, filter function is just an evalfunc of
boolean.
~Aniket
On Wed, Sep 4, 2013 at 12:01 PM, Serega Sheypak <se...@gmail.com>wrote:
> It should work.
> filtered_result = FILTER dirty_data udf.my_python_filter_func(field1,
> field2);
>
>
> 2013/9/4 Max Von Tilden <ma...@yahoo.com>
>
> > Quick question from a Pig noob...in 0.11 does Pig support developing
> > filter functions developed in Python? Is there any documentation or
> > examples that anyone knows of?
> > thx,
> > John
>
--
"...:::Aniket:::... Quetzalco@tl"
Re: Python UDFs with Pig (support for Filter functions?)
Posted by Serega Sheypak <se...@gmail.com>.
It should work.
filtered_result = FILTER dirty_data udf.my_python_filter_func(field1,
field2);
2013/9/4 Max Von Tilden <ma...@yahoo.com>
> Quick question from a Pig noob...in 0.11 does Pig support developing
> filter functions developed in Python? Is there any documentation or
> examples that anyone knows of?
> thx,
> John