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

   ### 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
   
   自动建表语句错误
   
   ### SeaTunnel Version
   
   2.3.5
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
     read_limit.bytes_per_second=7000000
     read_limit.rows_per_second=400
   }
   
   source {
     MongoDB-CDC {
       hosts = "xxx:27011"
       database = ["biocitydb"]
       collection = ["biocitydb.suppliers"]
       username = root
       password = "xxx"
       schema = {
         fields {
           "_id" : string,
           "name" : string
         }
       }
     }
   }
   
   
   sink {
     StarRocks {
       nodeUrls=[
           "xxx:8040"
       ]
       batch_max_rows = 1024
       table="suppliers"
       database="scm"
       base-url="jdbc:mysql://xxx:9030"
       password="XXX"
       username="root"
       enable_upsert_delete = true
       schema_save_mode="CREATE_SCHEMA_WHEN_NOT_EXIST"
       data_save_mode="APPEND_DATA"
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config xxx.conf -e local
   ```
   
   
   ### Error Exception
   
   ```log
   Caused by: 
org.apache.seatunnel.api.table.catalog.exception.CatalogException: 
ErrorCode:[API-03], ErrorDescription:[Catalog initialize failed] - Failed 
create table in catalog StarRocks, sql :[CREATE TABLE IF NOT EXISTS 
`scm`.`suppliers` (
   ,
   `_id` STRING NULL ,
   `name` STRING NULL
   ) ENGINE=OLAP
    PRIMARY KEY ()
   DISTRIBUTED BY HASH ()PROPERTIES (
       "replication_num" = "1"
   )]
   ```
   ```
   
   
   ### 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