nsivabalan opened a new pull request #4334: URL: https://github.com/apache/hudi/pull/4334
## What is the purpose of the pull request - HoodieIncremental source is used to read incrementally from a hudi table. When a deltastreamer is started to consume from source table and no checkpoint is provided, by setting. "hoodie.deltastreamer.source.hoodieincr.read_latest_on_missing_ckpt", we can enforce reading from latest commit. but htis means that incremental consumption will consume just the records ingested in the latest commit and not other records. But likely we might want to consume entire table in the first batch and then start to consume incrementally. So, introducing a new config named `hoodie.deltastreamer.source.hoodieincr.missing.checkpoint.strategy` which can accept two values, READ_LATEST and READ_EVERYTHING_UNTIL_LATEST. READ_LATEST will fallback to same behavior when users sets "hoodie.deltastreamer.source.hoodieincr.read_latest_on_missing_ckpt". But when a user sets "READ_EVERYTHING_UNTIL_LATEST", entire dataset is consumed on first batch when checkpoint is missing. Also, have deprecated the old config "hoodie.deltastreamer.source.hoodieincr.read_latest_on_missing_ckpt". ## Brief change log *(for example:)* - *Modify AnnotationLocation checkstyle rule in checkstyle.xml* ## Verify this pull request This change added tests and can be verified as follows: Added TestHoodieIncrSource to test the added functionality. ## 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org