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]; 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo