- All Implemented Interfaces:
- org.apache.calcite.sql.type.SqlReturnTypeInference
public class NumericOrDefaultReturnTypeInference
extends Object
implements org.apache.calcite.sql.type.SqlReturnTypeInference
Determine the return type of functions with numeric arguments. The return type is the type of the
argument with the largest range. We start to consider the arguments from the `startTypeIdx`-th
one. If one of the arguments is not of numeric type, we return the type of the
`defaultTypeIdx`-th argument instead.