GitHub user wagnermarkd opened a pull request:
https://github.com/apache/orc/pull/40
ORC-54: Evolve schemas based on field name rather than index
Change evolution to compare column names when building mapping.
Misc notes:
- I've added a setting orc.tolerate.missing.schema to allow working with
data before HIVE-4243 was fixed. This is important for anyone who has older
data, though it limits the evolutions that can be supported
- A lot of changes in RecordReaderImpl to make the reader column vs writer
column difference explicit
- SARG tests are passing, but there's no test coverage for SARG +
evolution. Will work on that.
- Removed some unneeded checked exceptions.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wagnermarkd/orc ORC-54-public
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/orc/pull/40.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 #40
----
commit c24200900e55437a242034eda6a5cd5122cc3acc
Author: Mark Wagner <[email protected]>
Date: 2016-05-18T21:24:16Z
ORC-54: Evolve schemas based on field name rather than index
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---