Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

equivalent of spark datetype in scala

Data type       |    Value type in Scala
------------------------------------------------
ByteType        |    Byte   
ShortType       |    Short  
IntegerType     |    Int    
LongType        |    Long   
FloatType       |    Float  
DoubleType      |    Double     
DecimalType     |    java.math.BigDecimal
StringType      |    String
BinaryType      |    Array[Byte]
BooleanType     |    Boolean 
TimestampType   |    java.sql.Timestamp
DateType        |    java.sql.Date
ArrayType       |    scala.collection.Seq   
MapType         |    scala.collection.Map   
StructType      |    org.apache.spark.sql.Row
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #equivalent #spark #datetype #scala
ADD COMMENT
Topic
Name
8+7 =