MonsterChenzhuo commented on code in PR #4620:
URL: 
https://github.com/apache/incubator-seatunnel/pull/4620#discussion_r1172109248


##########
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-mongodb-e2e/src/test/resources/mongodb_source_to_assert.conf:
##########
@@ -19,55 +19,81 @@
 ######
 
 env {
-  # You can set flink configuration here
   execution.parallelism = 1
   job.mode = "BATCH"
-  #execution.checkpoint.interval = 10000
-  #execution.checkpoint.data-uri = "hdfs://localhost:9000/checkpoint"
+  #spark config
+  spark.app.name = "SeaTunnel"
+  spark.executor.instances = 1
+  spark.executor.cores = 1
+  spark.executor.memory = "1g"
+  spark.master = local
 }
 
 source {
-  MongoDB {
-    uri = 
"mongodb://e2e_mongodb:27017/test_db?retryWrites=true&writeConcern=majority"
+  Mongodb {
+    connection = "mongodb://e2e_mongodb:27017/test_db?retryWrites=true"
     database = "test_db"
-    collection = "source_table"
+    collection = "sink_table"
+    no-timeout = true
+    fetch.size = 1000
+    max.time.min = 100
+    result_table_name = "mongodb_table"
     schema = {
       fields {
-        id = bigint
-        c_map = "map<string, smallint>"
-        c_array = "array<tinyint>"
+        c_map = "map<string, string>"
+        c_array = "array<int>"
         c_string = string
         c_boolean = boolean
-        c_tinyint = tinyint
-        c_smallint = smallint
+        c_tinyint = int

Review Comment:
   <img width="414" alt="图片" 
src="https://user-images.githubusercontent.com/60029759/233270135-e14338d2-43a5-436b-aa12-19b34f4837b7.png";>
   For example, source, write mongdb through the row of st, and the BSON of 
mongodb is not distinguished by TINYINT and SMALLINT.



-- 
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]

Reply via email to