job

Five Stars

job

Hello All,

 

Can anyone please help me.my requirement is

 

1.input data type is decimal.

11.0000---->11.0000

12.123----->12.123

0.000---->this value will not be loaded

0----->this value should not be load in target

 

I was tried but I get an error i.e cannot convert for int(0) to decimal.

can any one please provide the suggestion and soluton.

thanks

 

Ten Stars

Re: job

in your mapping just use int -> float which is a decimal

Thirteen Stars

Re: job

you can use below function to convert bigdecimal.

 

new BigDecimal(row1.string_column)
Manohar B
Thirteen Stars

Re: job

did it help you?

Manohar B
Five Stars

Re: job

THANK YOU GUYS .

For sharing your knowledge.

Thirteen Stars

Re: job

Please give kudos and click Accept the solution which one is helped. 

Manohar B

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.