MonsterChenzhuo commented on code in PR #4620:
URL:
https://github.com/apache/incubator-seatunnel/pull/4620#discussion_r1172107951
##########
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:
@TyrantLucifer You can take a look at the documentation of mongodb
connector. The data type of mongodb and the data type of st are not fully
mapped.
--
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]