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

Examples of org.apache.hadoop.hive.ql.exec.vector.udf.generic.GenericUDFIsNull


  @Test
  public void testGenericUDF() {

    // create a syntax tree for a function call 'myisnull(col0, "UNKNOWN")'
    ExprNodeGenericFuncDesc funcDesc;
    GenericUDF genericUDF = new GenericUDFIsNull();
    TypeInfo typeInfoStr = TypeInfoFactory.stringTypeInfo;

    List<ExprNodeDesc> children = new ArrayList<ExprNodeDesc>();
    children.add(new ExprNodeColumnDesc(typeInfoStr, "col0", "tablename", false));
    children.add(new ExprNodeConstantDesc(typeInfoStr, "UNKNOWN"));
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.exec.vector.udf.generic.GenericUDFIsNull

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.