inferReturnType abstract method

ResolveResult inferReturnType(
  1. AnalysisContext context,
  2. SqlInvocation call,
  3. List<Typeable> expandedArgs
)

Resolve the return type of a function invocation.

The call refers to a function declared in functionNames. To provide further analysis, the context may be used. To support function calls with a StarFunctionParameter, expandedArgs contains the expanded arguments from a function(*) call.

If resolving to a type isn't possible, implementations should return ResolveResult.unknown.

Implementation

ResolveResult inferReturnType(
    AnalysisContext context, SqlInvocation call, List<Typeable> expandedArgs);