Class SqlAbstractTimeFunction


  • public class SqlAbstractTimeFunction
    extends SqlFunction
    Base class for time functions such as "LOCALTIME", "LOCALTIME(n)".
    • Constructor Detail

      • SqlAbstractTimeFunction

        protected SqlAbstractTimeFunction​(java.lang.String name,
                                          SqlTypeName typeName)
    • Method Detail

      • inferReturnType

        public RelDataType inferReturnType​(SqlOperatorBinding opBinding)
        Description copied from class: SqlOperator
        Infers the return type of an invocation of this operator; only called after the number and types of operands have already been validated. Subclasses must either override this method or supply an instance of SqlReturnTypeInference to the constructor.
        Overrides:
        inferReturnType in class SqlOperator
        Parameters:
        opBinding - description of invocation (not necessarily a SqlCall)
        Returns:
        inferred return type
      • isDynamicFunction

        public boolean isDynamicFunction()
        Overrides:
        isDynamicFunction in class SqlOperator
        Returns:
        true iff it is unsafe to cache query plans referencing this operator; false is assumed by default