check the type of values ​​in a column

Highlighted
Six Stars

check the type of values ​​in a column

Hello,

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.

 

Thanks

One Star

Re: check the type of values ​​in a column

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.

Employee

Re: check the type of values ​​in a column

Hi,

 

    When you are reading file using tfileinputExcel or tfileinputdelimited, read the problematic column as String and the issue will be resolved.

 

Warm Regards,
Nikhil Thampi

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 :-)

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now