Pig Latin mode

x
 
1
-- Apache Pig (Pig Latin Language) Demo
2
/*
3
This is a multiline comment.
4
*/
5
a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
6
b = GROUP a BY (x,y,3+4);
7
c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
8
STORE c INTO "\path\to\output";
9
10
--
11

Simple mode that handles Pig Latin language.

MIME type defined: text/x-pig (PIG code)