Returns true if other
is an acceptable input type for a function that expects this,
possibly abstract DataType.
Returns true if other
is an acceptable input type for a function that expects this,
possibly abstract DataType.
// this should return true DecimalType.acceptsType(DecimalType(10, 2)) // this should return true as well NumericType.acceptsType(DecimalType(10, 2))
Returns the same data type but set all nullability fields are true
(StructField.nullable
, ArrayType.containsNull
, and MapType.valueContainsNull
).
Returns the same data type but set all nullability fields are true
(StructField.nullable
, ArrayType.containsNull
, and MapType.valueContainsNull
).
String representation for the type saved in external catalogs.
String representation for the type saved in external catalogs.
The default size of a value of this data type, used internally for size estimation.
The default size of a value of this data type, used internally for size estimation.
The compact JSON representation of this data type.
The compact JSON representation of this data type.
The pretty (i.e.
The pretty (i.e. indented) JSON representation of this data type.
Readable string representation for the type.
Readable string representation for the type.
Name of the type used in JSON serialization.
Name of the type used in JSON serialization.
Represents a JVM object that is passing through Spark SQL expression evaluation.