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

   ### 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
   
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: 
org.apache.seatunnel.connectors.seatunnel.clickhouse.exception.ClickhouseConnectorException:
 ErrorCode:[COMMON-08], ErrorDescription:[Sql operation failed, such as 
(execute,addBatch,close) etc...] - java.sql.SQLException: Code: 62, 
e.displayText() = DB::Exception: Syntax error: failed at position 15 ('ILIKE'): 
ILIKE '%allow_experimental_lightweight_delete%'. Expected PROFILES (version 
20.8.3.18)
   
   because my clickhouse  version 的太低not support 
allow_experimental_lightweight_delete?
   
   ### SeaTunnel Version
   
   2.3.2
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 2
     job.mode = "STREAMING"
     checkpoint.interval = 2000
   }
   
   source {
     MySQL-CDC {
       result_table_name = "fake"
       parallelism = 1
       server-id = 5656
       username = "mysql"
       password = "jjY@xklby1025"
       table-names = ["txjm_ppf.t_bp_salepos_d"]
       base-url = "jdbc:mysql://192.168.208.100:3316/txjm_ppf"
     }
   }
   
   
   
   sink {
     Clickhouse {
       host = "192.168.12.34:8123"
       database = "mysql_JM"
       table = "t_bp_salepos_d"
       username = "default"
       password = "CK@123"
       # cdc options
       primary_key = "bill"
       support_upsert = true
       allow_experimental_lightweight_delete = true
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config ./config/v2.streaming.mysql2ck -e local
   ```
   
   
   ### Error Exception
   
   ```log
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: 
org.apache.seatunnel.connectors.seatunnel.clickhouse.exception.ClickhouseConnectorException:
 ErrorCode:[COMMON-08], ErrorDescription:[Sql operation failed, such as 
(execute,addBatch,close) etc...] - java.sql.SQLException: Code: 62, 
e.displayText() = DB::Exception: Syntax error: failed at position 15 ('ILIKE'): 
ILIKE '%allow_experimental_lightweight_delete%'. Expected PROFILES (version 
20.8.3.18)
   
   because my clickhouse  version 的太低not support 
allow_experimental_lightweight_delete?
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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