satishkotha opened a new pull request #2611: URL: https://github.com/apache/hudi/pull/2611
## *Tips* - *Thank you very much for contributing to Apache Hudi.* - *Please review https://hudi.apache.org/contributing.html before opening a pull request.* ## What is the purpose of the pull request *Add support for pre-commit validation hooks through hive/presto queries. We provide mechanism to read uncommitted data through InputFormat. If validation passes, we will promote the commit. Otherwise, rollback the commit. ## Brief change log * Add new consume mode: validate. In this consume mode, we allow reading dirty data. Users can run hive/presto queries, validate data and then commit/abort. Note that users also need to explicitly specify dirty commit time to use this API. (We can consider making this optional) * In the first version, only added support for COW tables and parquet format. If general approach looks good, i can extend support for other file formats/table types as a follow up. ## Verify this pull request This change added tests. ## 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org