Equivalent Of Spark Datetype In Scala

[Solved] Equivalent Of Spark Datetype In Scala | Scala - Code Explorer | yomemimo.com
Question : equivalent of spark datetype in scala

Answered by : sajal-sirohi

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 : https://stackoverflow.com/questions/32899701/what-is-the-scala-type-mapping-for-all-spark-sql-datatype | Last Update : Fri, 13 May 22

Answers related to equivalent of spark datetype in scala

Code Explorer Popular Question For Scala