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

   ### 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
   
   environment:mssql-jdbc-9.4.1.jre8.jar、mssql2022
   My table structure does not have duplicate fields, but the error message 
indicates that my fields are duplicated
   
   
   
   ### SeaTunnel Version
   
   2.3.11
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 500000
   }
   source {
       SqlServer-CDC {
           startup.mode = "latest"
           username = "xxxx"
           password = "xxxx"
           database-names = ["HGerp"]
           table-names = ["HGerp.dbo.psWorkOrderLot"]
           base-url = 
"jdbc:sqlserver://xxxxxx;databaseName=HGerp;encrypt=true;trustServerCertificate=true;"
           table-names-config = [
             {
               table = "HGerp.dbo.psWorkOrderLot"
               primaryKeys = ["uGUID"]
             }
           ]
           debezium = {
             include.schema.changes = true
           }
       }
   }
   
   
   sink {
      Doris {
             fenodes = "xxxx"
             username = "xxxx"
             password = "xxxxx"
             database = "xxxx"
             table = "${table_name}"
             sink.label-prefix = "test-cdc"
             save_mode_create_template="""
   CREATE TABLE IF NOT EXISTS `${database}`.`${table_name}` (
   ${rowtype_fields}
   ) ENGINE=OLAP
    UNIQUE KEY (uGUID)
   DISTRIBUTED BY HASH (uGUID)
    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
   seatunnel.sh
   ```
   
   ### Error Exception
   
   ```log
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Table 
HGerp.dbo.psWorkOrderLot field sSpecification duplicate
                at 
org.apache.seatunnel.api.table.factory.TableFactoryContext.checkCatalogTableIllegal(TableFactoryContext.java:54)
                at 
org.apache.seatunnel.api.table.factory.TableSinkFactoryContext.<init>(TableSinkFactoryContext.java:41)
                at 
org.apache.seatunnel.api.table.factory.TableSinkFactoryContext.replacePlaceholderAndCreate(TableSinkFactoryContext.java:54)
                at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSink(FactoryUtil.java:234)
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### 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