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

   ### 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
   
   Now we supported read multiple table in source, and the result_table_name 
can only be one table. so the transform/sink can't only choose one table that 
needed. we need implement the split function to split the source multile tables.
   
   
   One user case is:
   read multiple table in source, and we need do some different table transform 
with different table, and write it to one/multiple sinks.
   
   the example config is look like this:
   ```hacon
   
   source  {
     read_tables = [tableA, tableB, tableC]
   }
   
   transform {
      Sql {
          source_table_name = "tableA"
           result_table_name = "tableA_sql"
          query = "select xxxx from tableA"
      }
    
      Sql {
          source_table_name = "tableB"
           result_table_name = "tableB_sql"
          query = "select xxxx from tableB"
      }
   
      Sql {
          source_table_name = "tableC"
           result_table_name = "tableC_sql"
          query = "select xxxx from tableC"
      }
   
   }
   
   
   sink {
      
     LocalFile {
         source_table_name = "tableA_sql"
     }
    
     MySQL {
         source_table_name = "tableB_sql"
     }
    
     Hive {
         source_table_name = ["tableA_sql", "tableB_sql", "tableC_sql"]
     }
   
   }
   
   
   
   ```
   
   
   
   
   
   
   
   
   
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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