Skip to content

TypeCoercion Object

TypeCoercion is a Scala object that defines the <> for Logical Analyzer.

Defining Type Coercion Analysis Rules

typeCoercionRules(
  conf: SQLConf): List[Rule[LogicalPlan]]

typeCoercionRules is a collection of <> to transform <> (in the order of execution):

  • InConversion
  • WidenSetOperationTypes
  • PromoteStrings
  • DecimalPrecision
  • BooleanEquality
  • FunctionArgumentConversion
  • ConcatCoercion
  • EltCoercion
  • CaseWhenCoercion
  • IfCoercion
  • StackCoercion
  • Division
  • ImplicitTypeCasts
  • DateTimeOperations
  • WindowFrameCoercion

typeCoercionRules is used when Analyzer is requested for batches.

Back to top