hadoop - Does Apache Pig FOREACH require GENERATE? -
i have never seen example of foreach in pig latin without generate. foreach statements require generate?
from syntax of foreach, generate block part of foreach, , have choice of simple block or nested block. answer yes, foreach require generate.
alias = foreach { gen_blk | nested_gen_blk } [as schema];