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

   ### 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导入到es
   source:
   title content
   abc  123
   cdf   NULL
   这时候就会发现数据同步到es之后,title=cdf的这条记录,content字段会被忽略,这个可以在哪里设置?
   
   ### SeaTunnel Version
   
   2.3.6
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 4
     job.mode = "STREAMING"
     checkpoint.interval = 10000
   }
   
   source {
     MySQL-CDC {
       base-url = "jdbc:mysql://127.0.0.1:3306/test_db"
       username = "test"
       password = "test"
        table-names = ["ctest_db.test"]
        result_table_name  = "src_test_log"
     }
   }
   
   transform {  
     Sql {
        source_table_name = "src_test_log"
           result_table_name = "dst_test_log"
        query = "select title, content from test"
     }
   }
   
   sink {
       Elasticsearch {
           hosts = ["10.199.26.14:9200"]
           index = "test"
           
        result_table_name  = "dst_test_log"
           # CDC required options
           primary_keys = ["title"]
        schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
           data_save_mode = "APPEND_DATA"
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   seatunnel.cmd -e local --config ./test.conf.template
   ```
   
   
   ### Error Exception
   
   ```log
   content为NONE的数据,es同步的时候会被忽略
   ```
   
   
   ### 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