if my table is: t = load 'data' as (v:int, c:int);
and I want to do u = foreach t generate c/v as cov; how do I get fraction out of this? because u = foreach t generate (double)c / v; crashes with a casting error for me, do I write an UDF?
if my table is: t = load 'data' as (v:int, c:int);
and I want to do u = foreach t generate c/v as cov; how do I get fraction out of this? because u = foreach t generate (double)c / v; crashes with a casting error for me, do I write an UDF?