Pig Functions Examples


Below is one of the good collection of examples for most frequently used functions in Pig. Pig Functions Examples.

Contents

LOAD

DESCRIEBE/EXPLAIN/ILLUSTRATE

FOREACH

GROUP

STORE

LIMIT

ORDER

DISTINCT

JOIN

JOIN USING MULTIPLE KEYS

OUTER JOINS

SELF JOIN

COUNT NUMBER OF ROWS IN SELF JOIN’S OUTPUT

SAMPLE

PARALLEL

UDF:REGISTER

UDF:DEFINE

CALLING JAVA STATIC FUNCTIONS

FLATTEN

REPLACE EMPTY BAG WITH CONSTANT BAG

NESTED FOREACH

ORDER BY THE group

SAMPLE SCRIPTS

EXEXUTE PIG SCRIPT COMMAND LINE

PIG VERSION

LOAD

DESCRIEBE/EXPLAIN/ILLUSTRATE

FOREACH

GROUP