Search in sources :

Example 1 with HiveUDFOperatorWithoutInference

use of org.apache.drill.exec.planner.sql.HiveUDFOperatorWithoutInference in project drill by axbaretto.

the class HiveFunctionRegistry method register.

@Override
public void register(DrillOperatorTable operatorTable) {
    for (String name : Sets.union(methodsGenericUDF.asMap().keySet(), methodsUDF.asMap().keySet())) {
        operatorTable.addOperatorWithoutInference(name, new HiveUDFOperatorWithoutInference(name.toUpperCase()));
        operatorTable.addOperatorWithInference(name, new HiveUDFOperator(name.toUpperCase(), new HiveSqlReturnTypeInference()));
    }
}
Also used : HiveUDFOperatorWithoutInference(org.apache.drill.exec.planner.sql.HiveUDFOperatorWithoutInference) HiveUDFOperator(org.apache.drill.exec.planner.sql.HiveUDFOperator)

Example 2 with HiveUDFOperatorWithoutInference

use of org.apache.drill.exec.planner.sql.HiveUDFOperatorWithoutInference in project drill by apache.

the class HiveFunctionRegistry method register.

@Override
public void register(DrillOperatorTable operatorTable) {
    for (String name : Sets.union(methodsGenericUDF.asMap().keySet(), methodsUDF.asMap().keySet())) {
        operatorTable.addOperatorWithoutInference(name, new HiveUDFOperatorWithoutInference(name.toUpperCase()));
        operatorTable.addOperatorWithInference(name, new HiveUDFOperator(name.toUpperCase(), new HiveSqlReturnTypeInference()));
    }
}
Also used : HiveUDFOperatorWithoutInference(org.apache.drill.exec.planner.sql.HiveUDFOperatorWithoutInference) HiveUDFOperator(org.apache.drill.exec.planner.sql.HiveUDFOperator)

Aggregations

HiveUDFOperator (org.apache.drill.exec.planner.sql.HiveUDFOperator)2 HiveUDFOperatorWithoutInference (org.apache.drill.exec.planner.sql.HiveUDFOperatorWithoutInference)2