标签:
Pig中的模式可以是用户显示声明的,也可以是Pig通过用户的使用方式猜测的。
data = load ‘data‘ as (name:chararray, age:int, address:chararray);
data = load ‘data‘ as XxStorage();
data = load ‘data‘; frhd = foreach data generate $7/1000, $3*100.0, SUBSTRING($0, 0, 1), $6-$3
cleaned = filter data by $0 > $3
标签:
原文地址:http://www.cnblogs.com/lishouguang/p/4559267.html