Description
Steps to reproduce:
sqlContext.range(0, 10).select('id as "Acol").write.format("orc").save("/tmp/foo") sqlContext.read.format("orc").load("/tmp/foo").schema("Acol") //java.lang.IllegalArgumentException: Field "Acol" does not exist. sqlContext.read.format("orc").load("/tmp/foo").schema("acol") //org.apache.spark.sql.types.StructField = StructField(acol,LongType,true) sqlContext.read.format("orc").load("/tmp/foo").select("Acol").show() //+----+ |Acol| +----+ | 1| | 5| | 3| | 4| | 7| | 2| | 6| | 8| | 9| | 0| +----+
Attachments
Issue Links
- links to