Null handling issue
Posted: Wed Nov 03, 2010 3:19 pm
I defined a source as a sequential file where one column is set as Nullable "No".
The data is coming correctly. But when I load the data into database, I can see some null values. (The data is being loaded as the column is defined as nullable in database oracle).
So I want to replace the null value with a pre-defined string. Before that, I want to trim first and then check for null values.
So, first, i am trying to trim the string. I used function as follows in specifications for MODIFY stage.
ADDR_1=STRING_TRIM[NULL,end](ADDR_1)
When I execute the job, I am getting the following error:
OC_LOAD_TUTORIAL_TBL: ?? (IIS-CONN-DAAPI-000398; Schema reconciliation detected a size mismatch for column ADDR_1. When writing column VARCHAR(min=0) into database column VARCHAR(min=0,max=30), truncation, loss of precision or data corruption can occur.; CC_DBSchemaRules; reportSizeMismatch; CC_DBSchemaRules.cpp; 1,575)
Am I missing anything here.
Thanks a lot in advance.
The data is coming correctly. But when I load the data into database, I can see some null values. (The data is being loaded as the column is defined as nullable in database oracle).
So I want to replace the null value with a pre-defined string. Before that, I want to trim first and then check for null values.
So, first, i am trying to trim the string. I used function as follows in specifications for MODIFY stage.
ADDR_1=STRING_TRIM[NULL,end](ADDR_1)
When I execute the job, I am getting the following error:
OC_LOAD_TUTORIAL_TBL: ?? (IIS-CONN-DAAPI-000398; Schema reconciliation detected a size mismatch for column ADDR_1. When writing column VARCHAR(min=0) into database column VARCHAR(min=0,max=30), truncation, loss of precision or data corruption can occur.; CC_DBSchemaRules; reportSizeMismatch; CC_DBSchemaRules.cpp; 1,575)
Am I missing anything here.
Thanks a lot in advance.