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

   ### 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
   
   Case: Sync excel file data from S3File to Mysql
   Issue: Incorrect sink data: excel file contains 8 lines of different data, 
but once the data sync into Mysql, all 8 lines of data are the last line of the 
file.
   
   
   
   
   
   
   
   ### SeaTunnel Version
   
   2.3.3
   
   ### SeaTunnel Config
   
   ```conf
   env {
     job.mode = "BATCH"
   }
   
   source {
     S3File {
       path = "/xlsx/20230907/test_seatunnel.xlsx"
       bucket = "s3a://xxx"
       fs.s3a.endpoint="xxxx"
       
fs.s3a.aws.credentials.provider="org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider"
       file_format_type = "excel"
       access_key = "xxx"
       secret_key = "xxxxx"
       schema {
           fields {
               KCode = string
               Title = string
               Author = string
               Version = string
               SecurityLevel = string
           }
       }
     }
   }
   
   sink {
     Jdbc {
       url = 
"jdbc:mysql://xxx:3306/mei_etl?rewriteBatchedStatements=true&serverTimezone=GMT%2B8"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "xxx"
       password = "xxx"
       database = "xxx"
       table = "test_excel"
       generate_sink_sql=true
     }
   }
   ~
   ```
   
   
   ### Running Command
   
   ```shell
   sh bin/seatunnel.sh -c s3excel.conf
   ```
   
   
   ### Error Exception
   
   ```log
   No error exception.
   ```
   
   
   ### 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