I have a csv file that contains a column of type integer but also contains string values, I try to convert this column to a string but the values that are string originally are not inserted into my mysql table, I I think to check the type of the column if it is integer I convert it to string if not if it is string I insert it directly, can you help me if there is a function or a component for this treatment.
Type of your column in input and output( your table) schema should be string. You don't need to convert input column from integer to string.
When you are reading file using tfileinputExcel or tfileinputdelimited, read the problematic column as String and the issue will be resolved.
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)
Try Talend Cloud free for 30 days.
Introduction to Talend Open Studio for Data Integration.
Practical steps to developing your data integration strategy.
Create systems and workflow to manage clean data ingestion and data transformation.