Class SqlTryCastFunction

java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.flink.table.planner.functions.sql.BuiltInSqlFunction
org.apache.flink.table.planner.functions.sql.SqlTryCastFunction
All Implemented Interfaces:
BuiltInSqlOperator

@Internal public class SqlTryCastFunction extends BuiltInSqlFunction
This class implements the TRY_CAST built-in, essentially delegating all the method invocations, whenever is possible, to Calcite's SqlCastFunction.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.flink.table.planner.functions.sql.BuiltInSqlFunction

    BuiltInSqlFunction.Builder
  • Field Summary

    Fields inherited from class org.apache.calcite.sql.SqlOperator

    kind, MDX_PRECEDENCE, NL
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding, boolean throwOnFailure)
     
    org.apache.calcite.sql.SqlOperandCountRange
     
    getSignatureTemplate(int operandsCount)
     
    org.apache.calcite.sql.SqlSyntax
     
    org.apache.calcite.rel.type.RelDataType
    inferReturnType(org.apache.calcite.sql.SqlOperatorBinding opBinding)
     
    void
    unparse(org.apache.calcite.sql.SqlWriter writer, org.apache.calcite.sql.SqlCall call, int leftPrec, int rightPrec)
     

    Methods inherited from class org.apache.flink.table.planner.functions.sql.BuiltInSqlFunction

    getMonotonicity, getQualifiedName, getVersion, isDeterministic, isInternal, newBuilder

    Methods inherited from class org.apache.calcite.sql.SqlFunction

    deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, isQuantifierAllowed, validateCall, validateQuantifier

    Methods inherited from class org.apache.calcite.sql.SqlOperator

    acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getStrongPolicyInference, hashCode, inferReturnType, isAggregator, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getSignatureTemplate

      public String getSignatureTemplate(int operandsCount)
      Overrides:
      getSignatureTemplate in class org.apache.calcite.sql.SqlOperator
    • getOperandCountRange

      public org.apache.calcite.sql.SqlOperandCountRange getOperandCountRange()
      Overrides:
      getOperandCountRange in class org.apache.calcite.sql.SqlOperator
    • checkOperandTypes

      public boolean checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding, boolean throwOnFailure)
      Overrides:
      checkOperandTypes in class org.apache.calcite.sql.SqlOperator
    • getSyntax

      public org.apache.calcite.sql.SqlSyntax getSyntax()
      Overrides:
      getSyntax in class org.apache.calcite.sql.SqlFunction
    • unparse

      public void unparse(org.apache.calcite.sql.SqlWriter writer, org.apache.calcite.sql.SqlCall call, int leftPrec, int rightPrec)
      Overrides:
      unparse in class org.apache.calcite.sql.SqlFunction
    • inferReturnType

      public org.apache.calcite.rel.type.RelDataType inferReturnType(org.apache.calcite.sql.SqlOperatorBinding opBinding)
      Overrides:
      inferReturnType in class org.apache.calcite.sql.SqlOperator