Re: Spark 1.3 RC1 Generate schema based on string of schema

2015-02-20 Thread Denny Lee
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

Spark 1.3 RC1 Generate schema based on string of schema

2015-02-20 Thread Denny Lee
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