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

View solution in original post


All Replies
Highlighted
Eight Stars

Re: replace null value by '.'

Using Ternary operator in tMap we can achieve this ,

 

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

Highlighted
Six Stars

Re: replace null value by '.'

this making new column ...and i want "." where column value is null
Highlighted
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

View solution in original post

Highlighted
Six Stars

Re: replace null value by '.'

ak.png

Highlighted
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! ~
Highlighted
Six Stars

Re: replace null value by '.'

it's working properly...

 

 

Thank you so much..

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog