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

   ### 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 cdc debezium properties  set 
       debezium {
           "include.schema.changes"="true"
           "decimal.handling.mode"=string
           "snapshot.mode"=initial
           "snapshot.select.statement.overrides"="lijianjin.order_detail"
           "snapshot.select.statement.overrides.lijianjin.order_detail"="select 
* from  agent.agent where id >50"
       }
   
   but get all record to target table。expect  init load agent id >50
   
   ### SeaTunnel Version
   
   2.3.8
   
   ### SeaTunnel Config
   
   ```conf
   {
   "job.mode"=STREAMING
   "job.name"="SeaTunnel_Job_agent_cdc"
   "checkpoint.interval"="100000"
   "savemode.execute.location"=CLUSTER
   }
   source {
   MySQL-CDC {
       "snapshot.split.size"="8096"
       "snapshot.fetch.size"="1024"
       "incremental.parallelism"="1"
       debezium {
           "include.schema.changes"="true"
           "decimal.handling.mode"=string
           "snapshot.mode"=initial
           "snapshot.select.statement.overrides"="agent.agent"
           "snapshot.select.statement.overrides.agent.agent"="select * from  
agent.agent where id >50"
       }
       server-id="10001"
       "connect.timeout.ms"="30000"
       "connect.max-retries"="3"
       "connection.pool.size"="5"
       "chunk-key.even-distribution.factor.lower-bound"="0.05"
       "chunk-key.even-distribution.factor.upper-bound"="100.0"
       "sample-sharding.threshold"="1000"
       "inverse-sampling.rate"="1000"
       "startup.mode"=INITIAL
       "exactly_once"="true"
       "stop.mode"=NEVER
       parallelism="1"
       "result_table_name"=Table15844542934688
       catalog {
           factory=Mysql
       }
       database-names=[
           agent
       ]
       table-names=[
           "agent.agent"
       ]
       format=DEFAULT
       username=develop
       password="xxx"
       base-url="jdbc:mysql://xxx:3306/"
       server-time-zone=UTC
   }
   }
   transform {
   }
   sink {
   Jdbc {
       "schema_save_mode"="CREATE_SCHEMA_WHEN_NOT_EXIST"
       "data_save_mode"="APPEND_DATA"
       "create_index"="true"
       "connection_check_timeout_sec"="30"
       "batch_size"="1000"
       "is_exactly_once"="false"
       "max_commit_attempts"="3"
       "transaction_timeout_sec"="-1"
       "max_retries"="0"
       "auto_commit"="true"
       "support_upsert_by_query_primary_key_exist"="true"
       "primary_keys"=[
           id
       ]
       "multi_table_sink_replica"="1"
       "source_table_name"=Table15844542934688
       "generate_sink_sql"=true
       database=movie
       table=agent
       driver="com.mysql.cj.jdbc.Driver"
       user=develop
       
url="jdbc:mysql://xxx:3306/xxx?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true&allowMultiQueries=true"
       password="xxx"
   }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   seatunnel-web create mysql-cdc single table job
   ```
   
   
   ### Error Exception
   
   ```log
   no error,but all data sync to target table
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   1.8
   
   ### Screenshots
   
   <img width="341" alt="image" 
src="https://github.com/user-attachments/assets/d8e09437-19ea-40ca-9939-01e194cc97be";>
   
   
   ### 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