xushiyan opened a new pull request, #598:
URL: https://github.com/apache/hudi-rs/pull/598
## Description
Add a general `ConfigAlias` mechanism to the `ConfigParser` trait so any
Hudi config can declare alternative keys with optional deprecation warnings.
Use this to resolve `hoodie.table.ordering.fields` as a fallback for
`PrecombineField`, fixing `RecordMergeStrategy` derivation for v9 Hudi tables
that use ordering fields instead of precombine field.
- Add `ConfigAlias` struct with `new()` and `deprecated()` constructors
- Add `aliases()` and `resolve_raw_value()` to `ConfigParser` trait with
default implementations
- `PrecombineField` declares `hoodie.table.ordering.fields` as an alias
- `RecordMergeStrategy` derivation now checks aliases before defaulting to
`AppendOnly`
## How are the changes test-covered
- [ ] N/A
- [x] Automated tests (unit and/or integration tests)
- [ ] Manual tests
- [ ] Details are described below
--
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]