Class MockSqlOperatorTable.SplitFunction

java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.test.MockSqlOperatorTable.SplitFunction
Enclosing class:
MockSqlOperatorTable

public static class MockSqlOperatorTable.SplitFunction extends SqlFunction
"SPLIT" user-defined function. This function return array type in order to reproduce the throws of CALCITE-4062.
  • Constructor Details

    • SplitFunction

      public SplitFunction()
  • 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