Package org.apache.hadoop.hive.ql.udf.generic

Examples of org.apache.hadoop.hive.ql.udf.generic.GenericUDFToDecimal


  }

  @Test
  public void testFoldConstantsForUnaryExpression() throws HiveException {
    ExprNodeConstantDesc constDesc = new ExprNodeConstantDesc(new Integer(1));
    GenericUDFToDecimal udf = new GenericUDFToDecimal();
    udf.setTypeInfo(new DecimalTypeInfo(5, 2));
    List<ExprNodeDesc> children = new ArrayList<ExprNodeDesc>();
    children.add(constDesc);
    ExprNodeGenericFuncDesc exprDesc = new ExprNodeGenericFuncDesc();
    exprDesc.setGenericUDF(udf);
    exprDesc.setChildren(children);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.udf.generic.GenericUDFToDecimal

Copyright © 2018 www.massapicom. 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.