Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Macros in Grunt?

Copy link to this message
Re: Macros in Grunt?
No, Grunt does not support macros.  Macros depend on a pre-processor which Grunt does not run.


On Apr 11, 2012, at 4:34 PM, Russell Jurney wrote:

> /* Filter emails according to existence of header pairs: [from, to, cc,
> bcc, reply_to]
> Then project the header part, message_id and subject, and emit them,
> lowercased. */
> DEFINE headers_messages(email, col) RETURNS set {
>  filtered = FILTER $email BY ($col IS NOT NULL);
>  flat = FOREACH filtered GENERATE FLATTEN($col) AS $col, message_id,
> subject;
>  $set = FOREACH flat GENERATE LOWER($col) AS address, message_id, subject;
> }
> This works when I run the script from bash, but fails in Grunt.  Does Grunt
> support macros?
> --
> Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.com