trushev opened a new pull request, #5830:
URL: https://github.com/apache/hudi/pull/5830
…FC-33)
## What is the purpose of the pull request
This PR adds support of reading by flink when comprehensive schema
evolution(RFC-33) enabled and there were some operations *add column*, *rename
column*, *change type of column*, *drop column*.
## Brief change log
- Added new option to enable comprehensive schema evolution in flink
- Key changes are made inside `CopyOnWriteInputFormat` and
`MergeOnReadInputFormat`. Now, during the opening, it calculates schema of
file, if this schema differs from queried schema, it creates cast map. After
reading file, type conversion is performed according to constructed map.
## Verify this pull request
This change added tests and can be verified as follows:
- Added unit test `TestCastMap` to verify that type conversion is correct
- Added integration test `ITTestSchemaEvolution` to verify that table with
added, renamed, casted, dropped columns is read as expected.
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]