本文主要是介绍【programming pig】preliminary matters,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. pig中relation名字和field名字不能重新赋值,因为会造成引用丢失
you can write as follows,
A = load 'NYSE_dividends' (exchange, symbol, date, dividends);
A = filter A by dividends > 0;A = foreach A generate UPPER(symbol);
However, it is not recommended. It looks here as if you are reassigning A, but really
you are creating new relations called A, losing track of the old relations called A.
这篇关于【programming pig】preliminary matters的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!