Pig Latin – Sorting:
LIMIT:
Limit the number of tuples.
X = LIMIT A 3;
ORDER:
Sorts a relation based on one or more fields.
X = ORDER A BY a3 DESC;
Limit the number of tuples.
X = LIMIT A 3;
Sorts a relation based on one or more fields.
X = ORDER A BY a3 DESC;