org.apache.spark.sql.catalyst.analysis.TypeCoercion
Given an expected data type, try to cast the expression and return the cast expression.
Given an expected data type, try to cast the expression and return the cast expression.
If the expression already fits the input type, we simply return the expression itself. If the expression has an incompatible type that cannot be implicitly cast, return None.
Name for this rule, automatically inferred based on class name.
Name for this rule, automatically inferred based on class name.
Casts types according to the expected input types for Expressions.