There isn't. There are a few projects that wrap pig to enable this
sort of functionality.
It doesn't really have to be a sophisticated thing -- you can simply
use a templating library like Template Toolkit
(http://template-toolkit.org/) to get fairly far.

For pig-specific stuff, check out wukong or piglet in Ruby.

-D

On Tue, Feb 9, 2010 at 6:49 PM, prasenjit mukherjee
<[email protected]> wrote:
> Is there a way to reuse a pig scripts ( like def:: in python or
> function calls etc)  from inside a calling pig script. I have a set of
>  basic pig script which I would like to call from a high-level
> pig-script. Currently I have to copy/paste exact same set of code with
> different input relation. This makes the code unnecessary bulky and is
> error prone. Even a macro def will be a great help.
>
> -Thanks,
> Prasen
>

Reply via email to