Affects Version/s: 0.9.0
Fix Version/s: 0.9.0
The below is my script;
The script fails at while computing the sum with class cast exception.
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Double
... 19 more
This is clearly a bug in the logical plan created in 0.9. The sum operation should have processed using org.apache.pig.builtin.LongSum, but instead 0.9 logical plan have used org.apache.pig.builtin.DoubleSum which is meant for sum of doubles. And hence the ClassCastException.
The same script works fine with Pig 0.8.