From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

tMap output pass NULL ?

Highlighted
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.
Highlighted
Employee

Re: tMap output pass NULL ?

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

2019 GARTNER 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

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

Downloads and Trials

Test drive Talend's enterprise products.

Downloads