xxntti3n opened a new pull request, #721: URL: https://github.com/apache/doris-flink-connector/pull/721
# Proposed changes Issue Number: N/A ## Problem Summary: The Postgres CDC database sync only accepts `initial` and `latest-offset` for `scan.startup.mode`, so any other value silently falls back to `initial`. Flink CDC's `StartupOptions.committed()` (start from the slot's last committed position) was unreachable. This PR adds `committed-offset` as a startup mode value for `PostgresDatabaseSync` and maps it to `StartupOptions.committed()`. Supersedes #630 (rebased on the current module layout). ## Checklist(Required) 1. Does it affect the original behavior: No 2. Has unit tests been added: No Need 3. Has document been added or modified: No Need 4. Does it need to update dependencies: No 5. Are there any changes that cannot be rolled back: No ## Further comments Compiles with `mvn install -DskipTests -Pflink1 -pl flink-doris-connector-flink1 -am`. `StartupOptions.committed()` exists in flink-cdc 3.5.0. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
