It is not. UNION is in relational databases (it distincts, too, which Pig
does not), which is why it's specifically called out.
Since in SQL you can't reach inside grouped collections, their order is
arbitrary and depends on the operator implementation, so as there is no
existing expectation with regards to order, it did not get called out.
You can order tuples in bags returned as a result of grouping by using an
ORDER operator inside a foreach loop, of course.

D

On Mon, Jan 17, 2011 at 2:14 PM, Todd Lee <[email protected]> wrote:

> Hi,
>
> Is GROUP order-preserving? It is not mentioned in the Pig Latin doc while
> it
> does mention that UNION is not.
>
> Thanks,
> T
>

Reply via email to