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 Threaded View
Pig >> mail # user >> Nested binary conditionals


Copy link to this message
-
Nested binary conditionals
Has anyone had success nesting conditional statements?

I am trying to implement a standard if, else if, else if statement without
success.

e.g.

A = FOREACH B GENERATE (condition ? value_if_true : (condition2 ?
value_if_true : (condition3 ? value_if_true: 1)))

Thanks,

James
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