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

   ### Search before asking
   
   - [x] I had searched in the 
[feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22)
 and found no similar feature requirement.
   
   
   ### Description
   
   We have the following application scenario:  
   In our data synchronization task, the data source is S3File. Each 
synchronization specifies the `path` that needs to be processed. Under this 
`path`, there are multiple CSV files. The formats of these CSV files are not 
entirely consistent, but they all contain header columns and conform to the RFC 
4180 standard. For example:  
   - The column order of CSV file 1 is as follows: `cl1, cl2, cl5, cl6, cl7`.  
   - The column order of CSV file 2 is as follows: `cl2, cl1, cl6, cl5, cl8`.  
   
   If we want to synchronize columns `cl1` and `cl2`, we need to specify `cl1` 
and `cl2` in the schema. However, because the column orders of the two files 
are different, the data will be mismatched. As a result, the two files cannot 
be synchronized within the same source node.  
   
   We hope to incorporate the CSV's `header line` for file parsing. This would 
greatly facilitate data synchronization.
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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