tMap output pass NULL ?

One Star

tMap output pass NULL ?

Hello,

I have a tMap that is taking incoming values and passing them to another table.
One column has many blank entries, so I want to convert these to 'null' when they get into the other table.

The mysql table allows nulls on that column and using:

( ((row8.order_no != null) && (row8.order_no.trim() != "")) ? row8.order_no : null )

only still inserts empty (non-null) entries into that column.

How do I get the value of those blank records to be null in the new table?

Thanks.
Employee

Re: tMap output pass NULL ?

hello
try this
( ((row8.order_no != null) && ( !"".equals(row8.order_no.trim()) )) ? row8.order_no : null )

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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog