cherishDWJ opened a new issue, #7705:
URL: https://github.com/apache/seatunnel/issues/7705

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   MongoDB CDC Sink to Doris,the configuration of sink.enable-delete = "true" 
doesn't work.
   
   ### SeaTunnel Version
   
   2.3.5
   
   ### SeaTunnel Config
   
   ```conf
   env {
     # You can set engine configuration here
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     MongoDB-CDC {
       hosts = "10.1.10.88:27019"
       database = ["test"]
       collection = ["test.testStd"]
       username = "admin"
       password = "***"
       schema = {
         fields {
           "id" : int,
           "name" : string,
           "age" : int
         }
       }
     }
   }
   
   # Console printing of the read Mongodb data
   sink {
     Doris {
            fenodes = "hdp01:8031"
        username = admin
        password = "***"
        database = "doris_test"
        table = "mongodb_cdc_testStd"
           # schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
        sink.label-prefix = "test-mysql-cdc"
        sink.enable-2pc = "true"
           sink.enable-delete = "true"
        doris.config {
                        format = "json"
                        read_json_by_line = "true"
        }
           save_mode_create_template = """
               CREATE TABLE IF NOT EXISTS  ${database}.${table_name}  (
                   ${rowtype_fields}
                   ) ENGINE=OLAP
                   UNIQUE KEY(id)
                   DISTRIBUTED BY HASH (id) BUCKETS AUTO
                   PROPERTIES (
                   "replication_allocation" = "tag.location.default: 1",
                   "in_memory" = "false",
                   "storage_format" = "V2"
                   )
           """
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   bin/seatunnel.sh -c config/mongo_doris.conf -e local
   ```
   
   
   ### Error Exception
   
   ```log
   MongoDB CDC Sink to Doris,the configuration of sink.enable-delete = "true" 
doesn't work. When I use Mysql CDC sink to Doris, the configuration 
sink.enable-delete = "true" work well.
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   Java8
   
   ### Screenshots
   
   
![image](https://github.com/user-attachments/assets/06c44778-08e7-46fb-9dcb-14a149f463a0)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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