You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Trager Corey <Co...@navteq.com> on 2012/10/11 16:36:38 UTC

There's nothing like an "#include" statement for splicing common text into a pig script, right?

Several scripts start by loading the same file.  I'd like to have the text for the field names and types in one place.  Doable?

________________________________
The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.

Re: There's nothing like an "#include" statement for splicing common text into a pig script, right?

Posted by Alan Gates <ga...@hortonworks.com>.
See http://pig.apache.org/docs/r0.10.0/cont.html#import-macros

Alan.

On Oct 11, 2012, at 7:36 AM, Trager Corey wrote:

> Several scripts start by loading the same file.  I'd like to have the text for the field names and types in one place.  Doable?
> 
> ________________________________
> The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.