What is the use of foreach operation in Pig scripts?



What is the use of foreach operation in Pig scripts?..

Answer / Nidhish Paty Sahay

The FOREACH operation in Pig is used to iterate over each row or field of a relation and perform an action on it. It can be used for transforming data, applying user-defined functions (UDFs), or generating new relations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Pig Interview Questions

What are the drawbacks of Pig?

1 Answers  


What is interactive mode in apache pig?

1 Answers  


What are the different modes available in Pig?

1 Answers  


How do you run pig scripts on kerberos secured cluster?

1 Answers  


What are the complex datatypes in pig?

1 Answers  


What are the Optimizations a developer can use during joins?

1 Answers  


What are the relation operations in Pig? Explain any two with examples?

1 Answers  


What are the advantages of pig language?

1 Answers  


When to use hadoop, hbase, hive and pig?

1 Answers  


What are the different modes in which PIG can run and explain those?

1 Answers  


What is the relationship between hdfs, hbase, pig, hive and azkaban?

1 Answers  


What is a map in pig?

1 Answers  


Categories