TypeCoercion Object
TypeCoercion
is a Scala object that defines the type coercion rules for Spark Analyzer.
Defining Type Coercion Rules (For Spark Analyzer) — typeCoercionRules
Method
1 2 3 4 5 |
typeCoercionRules(conf: SQLConf): List[Rule[LogicalPlan]] |
typeCoercionRules
is a collection of Catalyst rules to transform logical plans (in the order of execution):
-
WidenSetOperationTypes
-
PromoteStrings
-
DecimalPrecision
-
BooleanEquality
-
FunctionArgumentConversion
-
ConcatCoercion
-
EltCoercion
-
CaseWhenCoercion
-
IfCoercion
-
StackCoercion
-
Division
-
ImplicitTypeCasts
-
DateTimeOperations
Note
|
typeCoercionRules is used exclusively when Analyzer is requested for batches.
|