Examples of DecimalScalePrecisionMulFunction


Examples of org.apache.drill.common.util.DecimalScalePrecisionMulFunction

    /* Get the result's scale and precision. This is a function scope for Multiply function, assert we have
     * only two inputs
     */
    assert args.size() == 2;

    DecimalScalePrecisionMulFunction outputScalePrec =
      new DecimalScalePrecisionMulFunction(args.get(0).getMajorType().getPrecision(), args.get(0).getMajorType().getScale(),
                                              args.get(1).getMajorType().getPrecision(), args.get(1).getMajorType().getScale());
        return (TypeProtos.MajorType.newBuilder().setMinorType(DecimalUtility.getDecimalDataType(outputScalePrec.getOutputPrecision()))
            .setScale(outputScalePrec.getOutputScale()).setPrecision(outputScalePrec.getOutputPrecision()).setMode(mode).build());
    }
View Full Code Here

Examples of org.apache.drill.common.util.DecimalScalePrecisionMulFunction

    /* Get the result's scale and precision. This is a function scope for Multiply function, assert we have
     * only two inputs
     */
    assert args.size() == 2;

    DecimalScalePrecisionMulFunction outputScalePrec =
      new DecimalScalePrecisionMulFunction(args.get(0).getMajorType().getPrecision(), args.get(0).getMajorType().getScale(),
                                              args.get(1).getMajorType().getPrecision(), args.get(1).getMajorType().getScale());
        return (TypeProtos.MajorType.newBuilder().setMinorType(DecimalUtility.getDecimalDataType(outputScalePrec.getOutputPrecision()))
            .setScale(outputScalePrec.getOutputScale()).setPrecision(outputScalePrec.getOutputPrecision()).setMode(mode).build());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.