GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/19470
[SPARK-18355][SQL] Use Spark schema to read ORC table instead of ORC file
schema
## What changes were proposed in this pull request?
Before Hive 2.0, ORC File schema has invalid column names like `_col1` and
`col2`. This PR ignores ORC File schema and use Spark schema.
## How was this patch tested?
Pass the newly added test case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-18355
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19470.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19470
----
commit d11ce09d07f36f39c4a8a92c4f0ff0f19a35a724
Author: Dongjoon Hyun <[email protected]>
Date: 2017-10-11T02:12:31Z
[SPARK-18355][SQL] Use Spark schema to read ORC table instead of ORC file
schema
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]