Oh, I just realized that I never imported all of sql._ . My bad!
On Fri Feb 20 2015 at 7:51:32 AM Denny Lee wrote:
> In the Spark SQL 1.2 Programmers Guide, we can generate the schema based
> on the string of schema via
>
> val schema =
> StructType(
> schemaString.split(" ").map(fieldNa
In the Spark SQL 1.2 Programmers Guide, we can generate the schema based on
the string of schema via
val schema =
StructType(
schemaString.split(" ").map(fieldName => StructField(fieldName,
StringType, true)))
But when running this on Spark 1.3.0 (RC1), I get the error:
val schema = Struc