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

   ### 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
   
   mysql新增表字段没有同步到doris
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "streaming"
     checkpoint.interval = 10000
   }
   source {
       MySQL-CDC {
           base-url = 
"jdbc:mysql://rm-xxxxxxx.mysql.rds.aliyuncs.com:3306/test01"
           username = "username"
           password = "password"
           #startup.mode = "earliest"
           int_type_narrowing = false
           startup.mode =  "initial"
           table-names = ["test01.test01_20250617"]
           schema-changes.enabled = true
       }
   }
   
   sink {
      Doris {
             fenodes = "192.168.1.1:8030"
             query-port = 9030
             username = "username"
             password = "password"
             #schema_save_mode = "RECREATE_SCHEMA"
             schema_save_mode="CREATE_SCHEMA_WHEN_NOT_EXIST"
             database = "test01"
             table = "${table_name}"
             sink.enable-2pc = "true"
             sink.enable-delete = "true"
             sink.label-prefix = "test_json"
             save_mode_create_template = "CREATE TABLE IF NOT EXISTS 
`${database}`.`${table_name}` ( ${rowtype_primary_key},${rowtype_fields} ) 
ENGINE=OLAP UNIQUE KEY (${rowtype_primary_key}) COMMENT '${comment}' 
DISTRIBUTED BY HASH (${rowtype_primary_key}) PROPERTIES ( 
\"replication_allocation\" = \"tag.location.default: 1\", \"in_memory\" = 
\"false\",  \"storage_format\" = \"V2\", \"disable_auto_compaction\" = 
\"false\" )"
             doris.config = {
               format = "json"
               read_json_by_line="true"
             }
         }
   }
   ```
   
   ### Running Command
   
   ```shell
   /opt/seatunnel-worker/bin/seatunnel.sh --config 
/opt/seatunnel-worker/jobs/test01.conf --async -n test01
   ```
   
   ### Error Exception
   
   ```log
   mysql新增表字段没有同步到doris
   
   mysql添加字段命令
   ALTER TABLE table  ADD COLUMN created_at DATETIME DEFAULT CURRENT_TIMESTAMP; 
--字段没有同步到doris,同步任务正常
   
   mysql添加字段命令
   ALTER TABLE table  ADD COLUMN created_at DATETIME; --字段正常同步到doris
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   openjdk version "17.0.15" 2025-04-15
   
   ### Screenshots
   
   _No response_
   
   ### 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