Package org.apache.calcite.sql.type
Class SqlReturnTypeInferenceChain
java.lang.Object
org.apache.calcite.sql.type.SqlReturnTypeInferenceChain
- All Implemented Interfaces:
SqlReturnTypeInference
Strategy to infer the type of an operator call from the type of the operands
by using a series of
SqlReturnTypeInference
rules in a given order.
If a rule fails to find a return type (by returning NULL), next rule is tried
until there are no more rules in which case NULL will be returned.-
Method Summary
Modifier and TypeMethodDescription@Nullable RelDataType
inferReturnType
(SqlOperatorBinding opBinding) Infers the return type of a call to anSqlOperator
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.sql.type.SqlReturnTypeInference
andThen, orElse
-
Method Details
-
inferReturnType
Description copied from interface:SqlReturnTypeInference
Infers the return type of a call to anSqlOperator
.- Specified by:
inferReturnType
in interfaceSqlReturnTypeInference
- Parameters:
opBinding
- description of operator binding- Returns:
- inferred type; may be null
-