Spark DataFrame Data Types
The platform currently supports the following Spark DataFrame data types. For a description of the Spark types, see the Spark SQL data types documentation For a general reference of the attribute data types that are supported in the platform, see the Attribute Data Types Reference.
IntegerType
) and short (ShortType
) values to long values (LongType
/ "long"
) and floating-point values (FloatType
) to double-precision values (DoubleType
/ "double"
).
The "Schema of Data Type" column in the following table indicates the matching platform attribute data type for each Spark data type.Spark Data Type | Schema Data Type |
---|---|
BooleanType |
"boolean" |
DoubleType |
"double" |
FloatType |
"double" |
IntegerType |
"long" |
LongType |
"long" |
NullType |
"null" |
ShortType |
"long" |
StringType |
"string" |
TimestampType |
"timestamp" |