Split Mysql table on date column and store result in different tables with dynamic name such as filesplit_2016-01-01

Four Stars

Split Mysql table on date column and store result in different tables with dynamic name such as filesplit_2016-01-01

Hi there,

 

I am trying to split a Mysql table based on a date column. If there are n distinct dates in the input table, n different tables must be created with the table name as filesplit_<date> for e.g : filesplit_2016-01-01.

 

My job designer has the components linked as in the screenshot attached SplitTable1.PNG.

 

The output tables are created but, it only takes in 1 row as input. This problem does not arise when I save the outputs in csv files.

 

Community Manager

Re: Split Mysql table on date column and store result in different tables with dynamic name such as filesplit_2016-01-01

Can you show the configuration of your output database component? Are you sure only 1 row is being added to the table? What you seen in the Studio after an "iterate" link is going to be the total rows per iteration. You will get an iteration per row from your database query

Four Stars

Re: Split Mysql table on date column and store result in different tables with dynamic name such as filesplit_2016-01-01

Thank you for the reply. 

I got a solution to this. Please find it in the link https://stackoverflow.com/questions/38921621/how-to-catch-errors-and-send-them-in-an-email-using-tal...

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.