Quantcast
Channel: Teradata Downloads - Tools
Viewing all articles
Browse latest Browse all 870

TPT - Assigning default values for columns not present in a file via TPT to load a table

$
0
0

Hi,
I am trying to use TPT utility to load data from a file into a table. I create INPUT, SELECT and INSERT schemas a part of this and it usually loads the file into the table without any issues.
Now, I have to load a couple of columns (audit fields) that are not in the file into the table with DEFAULT values. I would have to default columns CURRENT_DATE as column A and CURRENT_TIME as column B which are not there in the file but are present in the table.
I defined my input schema as per the source file metadata. I defined CURRENT_DATE as A and CURRENT_TIME as B in the SELECT schema in addition to the original columns. I mentioned the new fields in the INSERT schema as well.
But it still gives the below error. I cannot define column A in the input schema as its not there in the file.
Error Message :
Undefined derived column name: 'A' must be defined in a job schema.
 Specification is rejected.
Compilation failed due to errors. Execution Plan was not generated.
Job script compilation failed.
Any suggestions on how to assign default values not in file to a table via TPT would help.
 

Forums: 

Viewing all articles
Browse latest Browse all 870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>