yihua opened a new pull request, #5379:
URL: https://github.com/apache/hudi/pull/5379
## What is the purpose of the pull request
This PR fixes the projection logic around a nested field which is used as
the pre-combined key field. The fix is to include the root level field, i.e.,
"a", for a nested field "a.b.c" that is required.
## Brief change log
- Changes the logic to include the root level field for a required nested
field in `HoodieSparkUtils.getRequiredSchema`
- Adds tests to guard around the behavior for a nested field used as
pre-combined key.
## Verify this pull request
This change added tests in `TestHoodieAvroUtils` and
`TestMORDataSourceStorage`. `TestMORDataSourceStorage` contains tests that use
nested field "fare.currency" as the pre-combined key. Before this change, the
tests with nest fields fail. After this PR, the tests pass.
## 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]