Similar to the spark documentation here:
http://spark.apache.org/docs/latest/sql-programming-guide.html
case class Person(name: String, age: Long) val caseClassDS = Seq(Person("Andy", 32)).toDS() caseClassDS.show()
error for a sequence of Seq[org.opengis.feature.simple.SimpleFeature]
:
/geomesaSparkFirstSteps/src/main/scala/myOrg/GeoInMemory.scala:162: value toDS is not a member of Seq[org.opengis.feature.simple.SimpleFeature]
[error] geoResult.toDS()
see https://github.com/geoHeil/geomesaSparkFirstSteps/blob/master/src/main/scala/myOrg/GeoInMemory.scala#L162 for details
How can I fix this statement? Is the encoder from Seq[someObject]
issing?