JNSimba commented on code in PR #443:
URL:
https://github.com/apache/doris-flink-connector/pull/443#discussion_r1690703748
##########
flink-doris-connector/src/main/java/org/apache/doris/flink/tools/cdc/mongodb/MongoDBDatabaseSync.java:
##########
@@ -181,13 +178,13 @@ public DataStreamSource<String>
buildCdcSource(StreamExecutionEnvironment env) {
String startupMode = config.get(SourceOptions.SCAN_STARTUP_MODE);
switch (startupMode.toLowerCase()) {
- case INITIAL_MODE:
+ case DatabaseSyncConfig.SCAN_STARTUP_MODE_VALUE_INITIAL:
mongoDBSourceBuilder.startupOptions(StartupOptions.initial());
break;
- case LATEST_OFFSET_MODE:
+ case DatabaseSyncConfig.SCAN_STARTUP_MODE_VALUE_LATEST_OFFSET:
mongoDBSourceBuilder.startupOptions(StartupOptions.latest());
break;
- case TIMESTAMP_MODE:
+ case DatabaseSyncConfig.SCAN_STARTUP_MODE_VALUE_TIMESTAMP:
Review Comment:
Can we use cdc variables directly here?
--
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]