You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Marco Cadetg <ma...@zattoo.com> on 2012/01/17 15:22:21 UTC

overwrite output

Hi there,

AFAICT the STORE function doesn't provide a way to overwrite the output. I
guess you could use your own storage UDF to accomplish that but is there
also another way of doing that?

Thanks
-Marco

Re: overwrite output

Posted by Marco Cadetg <ma...@zattoo.com>.
Thank Jonathan that will work.
-Marco

On Tue, Jan 17, 2012 at 7:19 PM, Jonathan Coveney <jc...@gmail.com>wrote:

> you could have "rmf thefile;" before it, meaning just deleting it and then
> storing...or do you need some different set of guarantees?
>
> 2012/1/17 Marco Cadetg <ma...@zattoo.com>
>
> > Hi there,
> >
> > AFAICT the STORE function doesn't provide a way to overwrite the output.
> I
> > guess you could use your own storage UDF to accomplish that but is there
> > also another way of doing that?
> >
> > Thanks
> > -Marco
> >
>

Re: overwrite output

Posted by Jonathan Coveney <jc...@gmail.com>.
you could have "rmf thefile;" before it, meaning just deleting it and then
storing...or do you need some different set of guarantees?

2012/1/17 Marco Cadetg <ma...@zattoo.com>

> Hi there,
>
> AFAICT the STORE function doesn't provide a way to overwrite the output. I
> guess you could use your own storage UDF to accomplish that but is there
> also another way of doing that?
>
> Thanks
> -Marco
>