8
は関係豚条件演算子
test = LOAD 'input' USING PigStorage(',') as (a:chararray, b:chararray);
下のあなたはFOREACH
を行うと、次のように三項演算子を使用することができ、次の
if (b == 1) {
a = 'abc';
else if (b == 2) {
a = 'xyz';
else
// retain whatever is there in the column 'a'