You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Xiaomeng Wan <sh...@gmail.com> on 2010/12/02 23:03:32 UTC

is reusing alias names in multiple foreach blocks safe?

I just run a script in which I reuse some of the alias names in
different foreach blocks (by careless copying). it is like:

...
b = foreach a { x = ...; y = ...; ...}
...
i = foreach h { x = ...; y = ...; ...}

It finished and the results look ok. Can someone confirm that alias
names can be used repeatedly in different foreach blocks?

Regards,
Xiaomeng

Re: is reusing alias names in multiple foreach blocks safe?

Posted by Thejas M Nair <te...@yahoo-inc.com>.
Yes, that is safe.
-Thejas



On 12/2/10 2:03 PM, "Xiaomeng Wan" <sh...@gmail.com> wrote:

I just run a script in which I reuse some of the alias names in
different foreach blocks (by careless copying). it is like:

...
b = foreach a { x = ...; y = ...; ...}
...
i = foreach h { x = ...; y = ...; ...}

It finished and the results look ok. Can someone confirm that alias
names can be used repeatedly in different foreach blocks?

Regards,
Xiaomeng