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.