Description
final RexNode[] casts = new RexNode[2]; casts[0] = rexBuilder.makeCast( cx.getTypeFactory().createTypeWithNullability( int8Type, exprs.get(0).getType().isNullable()), exprs.get(0)); casts[1] = rexBuilder.makeCast( cx.getTypeFactory().createTypeWithNullability( int8Type, exprs.get(1).getType().isNullable()), exprs.get(1)); final RelDataType resType = cx.getValidator().getValidatedNodeType(call); return rexBuilder.makeCall(resType, op, exprs.subList(0, 2));
casts array is never read.
Are casts required there?
Should Arrays.asList(casts) be used instead of exprs.subList(0, 2)?