Skip to content

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:

  • ImplicitTypeCasts utility (as TypeCoercionRule) is used totransform
  • ExpectsInputTypes is requested to checkInputDataTypes

Implementations

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.