use of org.apache.hadoop.hive.ql.udf.generic.GenericUDFConcat in project hive by apache.
the class TestSharedWorkOptimizer method addFilter.
private TableScanOperator addFilter(TableScanOperator ts, int i) {
TableScanDesc desc = ts.getConf();
List<ExprNodeDesc> as = Lists.newArrayList(new ExprNodeConstantDesc(TypeInfoFactory.intTypeInfo, Integer.valueOf(i)), new ExprNodeColumnDesc(TypeInfoFactory.intTypeInfo, "c1", "aa", false));
GenericUDF udf = new GenericUDFConcat();
ExprNodeGenericFuncDesc f1 = new ExprNodeGenericFuncDesc(TypeInfoFactory.intTypeInfo, udf, as);
desc.setFilterExpr(f1);
return ts;
}
Aggregations