codope opened a new pull request #2915: URL: https://github.com/apache/hudi/pull/2915
As discussed in [RFC-14](https://cwiki.apache.org/confluence/display/HUDI/RFC+-+14+%3A+JDBC+incremental+puller), this change implements the first phase of JDBC incremental puller. It consists following changes: - JdbcSource: This class extends RowSource and implements fetchNextBatch(Option<String> lastCkptStr, long sourceLimit) - SqlQueryBuilder: A simple utility class to build sql queries fluently. - Implements two modes of fetching: full and incremental. Full is a complete scan of RDBMS table. Incremental is delta since last checkpoint. Incremental mode falls back to full fetch in case of any exception. - Caches the dataset after scan. Storage level is configurable. - Added unit tests to cover both incremental and full fetch. ## 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: [email protected]
