Convert small int to Boolean

One Star

Convert small int to Boolean

Hi,
Could any one help in writing the syntax for converting small int to Boolean.
Thanks,
-Teja.
Community Manager

Re: Convert small int to Boolean

Hi
Try some expression like this on tMap, eg:
row1.columnName==0?true:false
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Highlighted
One Star

Re: Convert small int to Boolean

How do i convert boolean to int in tmap 
Community Manager

Re: Convert small int to Boolean

Hi pDons
Try like this:
row1.columnName==true?1:0
//if true, set it to 1, otherwise it is 0.
----------------------------------------------------------
Talend | Data Agility for Modern Business

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.