pig是处理流 的工具,所以数据集是流对象,处理步骤也是一样的. Pig中存在按条件处理流对象的方式有 1)filter X= FILTER A BY (f1 == 8); 2)CASE WHEN THEN ELSE END CASE expression [ WHEN value THEN value ]+ [ELSE value ]? END 3)Bincond[?:] condition? value_if_true : value_if_false 4)SPLITaliasINTO al
折腾了半天终于把这个给折腾顺了,但是后来发现用不了竟然...悲剧啊,但是还是要记录下加深记忆 insert into table1 (field1, field2,field3) select ?field1,?field2,?field3 from temp where not exists (select field1,field2,field3 from table1 where field1=?field1 and field2=?field2 and field3=?field3);