NULL values in the output
Posted: Fri May 09, 2008 8:36 am
Hi,
I am fetching col1,col2,col3 from database. In the database col1 and col2 aur not-nullable but when I import the metadata in DS it says these fields are nullable and when I try to write these coloums in a seq file along with the col value its inserting nulls(|) also in the flat file.
The datatype of col1 and col2 are char20.
INPUT
col1 col2
ABC XYZ
OUTPUT
col1 col2
ABC|||||||||||| XYZ||||||||||
I am getting '|' along with the output of the column.
I have tried handling the null values and making the coloums as nullable and not-nullable both ways but not able to remove the '|||'
Please suggest.
I am fetching col1,col2,col3 from database. In the database col1 and col2 aur not-nullable but when I import the metadata in DS it says these fields are nullable and when I try to write these coloums in a seq file along with the col value its inserting nulls(|) also in the flat file.
The datatype of col1 and col2 are char20.
INPUT
col1 col2
ABC XYZ
OUTPUT
col1 col2
ABC|||||||||||| XYZ||||||||||
I am getting '|' along with the output of the column.
I have tried handling the null values and making the coloums as nullable and not-nullable both ways but not able to remove the '|||'
Please suggest.