Home | About | Sematext search-lucene.com search-hadoop.com
 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