getResult()

The getResult() method is called only during the compilation of a UDSF and indicates the data type that is returned by the evaluate() method.

The getResult() method must return one of the data types described in Data types. When the getResult method returns varchar(any), the calculateSize method is invoked at runtime to dynamically determine the size of the result.

Examples:

function getResult()
    return integer
end

function getResult()
    return varchar(255)
end