@Override
public List<?> translate(Function function) {
List<Expression> args = function.getParameters();
Function func = langFactory.createFunction("TO_CHAR", //$NON-NLS-1$
Arrays.asList(
args.get(0),
langFactory.createLiteral(format, TypeFacility.RUNTIME_TYPES.STRING)),
TypeFacility.RUNTIME_TYPES.STRING);
// For some reason, these values have trailing spaces
Function trimFunc = langFactory.createFunction(SourceSystemFunctions.RTRIM,
Arrays.asList( func ), TypeFacility.RUNTIME_TYPES.STRING);
return Arrays.asList(trimFunc);
}