pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Ryaboy <dvrya...@gmail.com>
Subject Re: Slight type mismatch in builtins?
Date Wed, 07 Dec 2011 05:00:38 GMT
Sorry. Long day. The second I sent this, I realized that's the input
schema I am looking at, not the output schema. Carry on...

D

On Tue, Dec 6, 2011 at 8:59 PM, Dmitriy Ryaboy <dvryaboy@gmail.com> wrote:
> I am refactoring the base math functions a bit, and noticed this:
>
> in SUM.java, we have this line:
>
> funcList.add(new FuncSpec(IntSum.class.getName(),
> Schema.generateNestedSchema(DataType.BAG, DataType.INTEGER)));
>
>
> Yet if we look at IntSum, it doesn't return an Integer, it returns a
> Long (safe thing to do for overflow):
>
> public class IntSum extends EvalFunc<Long> implements Algebraic,
> Accumulator<Long>
>
> Same deal with Floats vs Doubles.
>
> Bug?
>
> D

Mime
View raw message