Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to set the default value of the certain column to 1. Should I make the change in the input file by defining the default value as "1".
I tried couple of combinations by making it as 1, or "1", change the field type to String. But nothing works.
How do I set value to 1..? Thanks!
Hi Shong,
It's a business scenario where they want one of the columns to have default value set to 1.
Is there no way we can do it in Talend..? Thanks!
Can you try in tmap expression like
row1.fieldname== null ? 1 : row1.fieldnam
Hi,
So this column is a new column and doesn't exist in the input file but I added it in output file.
so, I add the column in output of tmap. and in Tmap try to set it default value to 1. It doesn't work.
can I not set default values in Tmap?
Hi,
If you create output column in tMap then use default value in expression.
Regards,
@KanT,you cannot set the default value for the column which not having input in tmap,
since you see harcode the value under Expression of Output section.