Class MockSqlOperatorTable.DynamicTypeFunction

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

public static class MockSqlOperatorTable.DynamicTypeFunction extends SqlFunction implements SqlTableFunction
"DYNTYPE" user-defined table function.
  • Constructor Details

    • DynamicTypeFunction

      public DynamicTypeFunction()
  • Method Details

    • 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