Package org.apache.spark.sql.types
Class UpCastRule
Object
org.apache.spark.sql.types.UpCastRule
Rule that defines which upcasts are allow in Spark.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true iff we can safely up-cast thefrom
type toto
type without any truncating or precision lose or possible runtime failures.static scala.collection.immutable.IndexedSeq<NumericType>
-
Constructor Details
-
UpCastRule
public UpCastRule()
-
-
Method Details
-
numericPrecedence
-
canUpCast
Returns true iff we can safely up-cast thefrom
type toto
type without any truncating or precision lose or possible runtime failures. For example, long to int, string to int are not up-casts.- Parameters:
from
- (undocumented)to
- (undocumented)- Returns:
- (undocumented)
-