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 <[email protected]> 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
