Class MockSqlOperatorTable.BadTableFunction

java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.test.MockSqlOperatorTable.BadTableFunction
All Implemented Interfaces:
SqlTableFunction
Enclosing class:
MockSqlOperatorTable

public static class MockSqlOperatorTable.BadTableFunction extends SqlFunction implements SqlTableFunction
Another bad table function: declares itself as a table function but does not return CURSOR.
  • Constructor Details

    • BadTableFunction

      public BadTableFunction()
  • Method Details

    • 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
    • getRowTypeInference

      public SqlReturnTypeInference getRowTypeInference()
      Description copied from interface: SqlTableFunction
      Returns the record type of the table yielded by this function when applied to given arguments. Only literal arguments are passed, non-literal are replaced with default values (null, 0, false, etc).
      Specified by:
      getRowTypeInference in interface SqlTableFunction
      Returns:
      strategy to infer the row type of a call to this function