Hi, I am using spark-shell with version 1.5.2. scala> sc.version res17: String = 1.5.2
but when trying to use StructType I am getting error:
val struct =
StructType(
StructField("a", IntegerType, true) ::
StructField("b", LongType, false) ::
StructField("c", BooleanType, false) :: Nil)
<console>:31: error: not found: value StructType
StructType(
Why?
