1. Introduction

This document captures the specification for nested foreach support in pig and proposal for extending this support over multiple levels. This is tracked at PIG-1631.


Pig currently supports DISTINCT, FILTER, LIMIT, CROSS and ORDER BY inside nested foreach statement and it is highly desired to have support for FOREACH nested inside a foreach.

C = foreach B {
     C1 = foreach A generate ..;
     generate group, ..;

NestedForeach (last edited 2011-08-03 08:56:14 by c-98-248-35-32)