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

Switch to Plain View
Pig, mail # user - Nested binary conditionals


Copy link to this message
-
Nested binary conditionals
James Newhaven 2012-08-14, 16:02
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