replace null value by '.'

Highlighted
Six Stars

replace null value by '.'

Hello,

 

I have one colomn for contact number some user did not enter value in that column...

Now i want to replace that value ny DOT '' . ''

 

 

 

Please reply 

 

Thanks


Accepted Solutions
Eight Stars

Re: replace null value by '.'

No need to new column, you can change the simple expression in tMap Output

i.e. row1.ColumnName to 

row1.ColumnName==null || row1.ColumnName.isEmpty()?".":row1.ColumnName


All Replies
Eight Stars

Re: replace null value by '.'

Using Ternary operator in tMap we can achieve this ,

 

row1.ColumnName==null || row1.ColumnName.isEmpty()?".":row1.ColumnName

Six Stars

Re: replace null value by '.'

this making new column ...and i want "." where column value is null
Eight Stars

Re: replace null value by '.'

No need to new column, you can change the simple expression in tMap Output

i.e. row1.ColumnName to 

row1.ColumnName==null || row1.ColumnName.isEmpty()?".":row1.ColumnName

Six Stars

Re: replace null value by '.'

ak.png

Six Stars

Re: replace null value by '.'

I believe ashifa is right, try his expression in tmap and see if that helps!
~ ````Please don't forget to give "kudos" when a reply is helpful and click "Accept the solution" when you think you're good with it. Thanks! ~
Six Stars

Re: replace null value by '.'

it's working properly...

 

 

Thank you so much..

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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch