yuxiqian commented on code in PR #3704:
URL: https://github.com/apache/flink-cdc/pull/3704#discussion_r1835436798


##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mongodb-cdc/src/main/java/org/apache/flink/cdc/connectors/mongodb/source/config/MongoDBSourceOptions.java:
##########
@@ -157,4 +158,27 @@ public class MongoDBSourceOptions {
                     .defaultValue(true)
                     .withDescription(
                             "MongoDB server normally times out idle cursors 
after an inactivity period (10 minutes) to prevent excess memory use. Set this 
option to true to prevent that.");
+
+    public static final ConfigOption<Boolean> 
SCAN_FLATTEN_NESTED_COLUMNS_ENABLED =
+            ConfigOptions.key("scan.flatten-nested-columns.enabled")
+                    .booleanType()
+                    .defaultValue(false)
+                    .withDescription(
+                            "Optional flag to recursively flatten the Bson 
field into columns."
+                                    + "For a better understanding, the name of 
the flattened column will be composed of the path to get the column. "
+                                    + "For example, the field `col` in the 
Bson document {\"nested\": {\"col\": true}} is `nested.col` in the flattened 
schema. ");
+
+    public static final ConfigOption<Boolean> SCAN_PRIMITIVE_AS_STRING =
+            ConfigOptions.key("scan.primitive-as-string")
+                    .booleanType()
+                    .defaultValue(false)
+                    .withDescription("Optional flag to infer primitive types 
as string type.");

Review Comment:
   Irrelevant change?



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to