private static FunctionInfo handleCastForParameterizedType(TypeInfo ti, FunctionInfo fi) { SettableUDF udf = (SettableUDF) fi.getGenericUDF(); try { udf.setTypeInfo(ti); } catch (UDFArgumentException e) { throw new RuntimeException(e); } return new FunctionInfo( fi.getFunctionType(), fi.getDisplayName(), (GenericUDF) udf, fi.getResources()); }
private static FunctionInfo handleCastForParameterizedType(TypeInfo ti, FunctionInfo fi) { SettableUDF udf = (SettableUDF) fi.getGenericUDF(); try { udf.setTypeInfo(ti); } catch (UDFArgumentException e) { throw new RuntimeException(e); } return new FunctionInfo( fi.getFunctionType(), fi.getDisplayName(), (GenericUDF) udf, fi.getResources()); }
((SettableUDF)genericUDF).setTypeInfo(typeInfo);
((SettableUDF)genericUDF).setTypeInfo(typeInfo);
TypeInfo typeInfo = ((SettableUDF)genericUDF).getTypeInfo(); if (typeInfo != null) { ((SettableUDF)clonedUDF).setTypeInfo(typeInfo);
TypeInfo typeInfo = ((SettableUDF)genericUDF).getTypeInfo(); if (typeInfo != null) { ((SettableUDF)clonedUDF).setTypeInfo(typeInfo);
((SettableUDF)genericUDF).setTypeInfo(charTypeInfo); VarcharTypeInfo varcharTypeInfo = ParseUtils.getVarcharTypeInfo(funcNameNode); if (genericUDF != null) { ((SettableUDF)genericUDF).setTypeInfo(varcharTypeInfo); DecimalTypeInfo decTypeInfo = ParseUtils.getDecimalTypeTypeInfo(funcNameNode); if (genericUDF != null) { ((SettableUDF)genericUDF).setTypeInfo(decTypeInfo);
((SettableUDF)genericUDF).setTypeInfo(charTypeInfo); VarcharTypeInfo varcharTypeInfo = ParseUtils.getVarcharTypeInfo(funcNameNode); if (genericUDF != null) { ((SettableUDF)genericUDF).setTypeInfo(varcharTypeInfo); ((SettableUDF)genericUDF).setTypeInfo(timestampLocalTZTypeInfo); DecimalTypeInfo decTypeInfo = ParseUtils.getDecimalTypeTypeInfo(funcNameNode); if (genericUDF != null) { ((SettableUDF)genericUDF).setTypeInfo(decTypeInfo);
((SettableUDF) genericUdf).setTypeInfo(castType);
((SettableUDF) genericUdf).setTypeInfo(castType);
private static FunctionInfo handleCastForParameterizedType(TypeInfo ti, FunctionInfo fi) { SettableUDF udf = (SettableUDF) fi.getGenericUDF(); try { udf.setTypeInfo(ti); } catch (UDFArgumentException e) { throw new RuntimeException(e); } return new FunctionInfo( fi.isNative(), fi.getDisplayName(), (GenericUDF) udf, fi.getResources()); }
((SettableUDF)genericUDF).setTypeInfo(typeInfo);
TypeInfo typeInfo = ((SettableUDF)genericUDF).getTypeInfo(); if (typeInfo != null) { ((SettableUDF)clonedUDF).setTypeInfo(typeInfo);
((SettableUDF)genericUDF).setTypeInfo(charTypeInfo); VarcharTypeInfo varcharTypeInfo = ParseUtils.getVarcharTypeInfo(funcNameNode); if (genericUDF != null) { ((SettableUDF)genericUDF).setTypeInfo(varcharTypeInfo); DecimalTypeInfo decTypeInfo = ParseUtils.getDecimalTypeTypeInfo(funcNameNode); if (genericUDF != null) { ((SettableUDF)genericUDF).setTypeInfo(decTypeInfo);
((SettableUDF) genericUdf).setTypeInfo(castType);