[
https://issues.apache.org/jira/browse/SPARK-9170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14633028#comment-14633028
]
Apache Spark commented on SPARK-9170:
-------------------------------------
User 'viirya' has created a pull request for this issue:
https://github.com/apache/spark/pull/7520
> ORC data source creates a schema with lowercase table names
> -----------------------------------------------------------
>
> Key: SPARK-9170
> URL: https://issues.apache.org/jira/browse/SPARK-9170
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.4.1
> Reporter: Peter Rudenko
>
> Steps to reproduce:
> {code}
> 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|
> +----+
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]