ExpectsInputTypes Expressions¶
ExpectsInputTypes is an extension of the Expression abstraction for Catalyst Expressions that can define the expected types from child expressions.
Contract¶
inputTypes¶
inputTypes: Seq[AbstractDataType]
Expected AbstractDataTypes of the child expressions
Used when:
ImplicitTypeCastsutility (asTypeCoercionRule) is used totransformExpectsInputTypesis requested to checkInputDataTypes
Implementations¶
- HigherOrderFunction
- JsonToStructs
- others
checkInputDataTypes¶
checkInputDataTypes(): TypeCheckResult
checkInputDataTypes is part of the Expression abstraction.
checkInputDataTypes checks that the expected inputTypes are the DataTypes of the evaluation of the child expressions.