nsivabalan opened a new pull request, #7726: URL: https://github.com/apache/hudi/pull/7726
### Change Logs As of now, record key generation and partition path generation are tightly coupled based on the key gen class used. But these could be de-coupled. Since recently we added [auto generation of record keys](https://github.com/apache/hudi/pull/7640), its not flexible to be used w/ any key gen class. So, this patch fixes that so that users can enable auto generation of record keys along w/ any key gen class. Users have to enable a config called `hoodie.auto.generate.record.keys` to let hudi auto generate record keys for them. In such cases, users don't need to set any value for `hoodie.datasource.write.recordkey.field` which otherwise is a mandatory field. When this new config is enabled, the key gen class config (`hoodie.datasource.write.keygenerator.class`) will determine the partition path generation logic. Added a new class called AutoRecordKeyGenerator which will be leveraged in all key gen classes for record key related methods. ### Impact Enables users enable auto generation of record keys along w/ any key gen class. ### Risk level (write none, low medium or high below) low. ### Documentation Update _Describe any necessary documentation update if there is any new feature, config, or user-facing change_ - _The config description must be updated if new configs are added or the default value of the configs are changed_ - _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make changes to the website._ ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
