i am surprised this is allowed...

scala> sqlContext.sql("select name as boo, score as boo from
candidates").schema

res7: org.apache.spark.sql.types.StructType =
StructType(StructField(boo,StringType,true),
StructField(boo,IntegerType,true))


should StructType check for duplicate field names?

Reply via email to