Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Evaluate Pig UDF values for MACRO parameters


+
Timothy Potter 2012-11-20, 21:01
Copy link to this message
-
Re: Evaluate Pig UDF values for MACRO parameters
Don't know if this is supported. Seems reasonable?

Russell Jurney http://datasyndrome.com

On Nov 20, 2012, at 4:02 PM, Timothy Potter <[EMAIL PROTECTED]> wrote:

> I'd like to call a UDF to evaluate the value of a MACRO parameter, but when
> I do something like:
>
> signals_in = load_recent_signals(TimebucketToDatePartition(1351612800000L),
> TimebucketToDatePartition(1351785600000L));
>
> I get error:  org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 5,
> column 58>  mismatched input '(' expecting RIGHT_PAREN
>
> Of course, it works if I pass static string values like:
>
> signals_in = load_recent_signals( '2012-11-01_1600',  '2012-11-02_1600');
> So I know my MACRO is correct. Is this by design? Anyone see a way to work
> around this?
>
> Cheers,
> Tim
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB