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

TPT - Timestamp format error 6760

$
0
0

I have a simple load step

DEFINE JOB Run_Load
(
     Step Load_Tables
     (
		APPLY $INSERT TO OPERATOR
         (
             $LOAD()
             ATTRIBUTES
             (
                 TargetTable = @TargetDatabase || '.' || @TargetTable,
			LogTable = @TargetDatabase || '.' || @TargetTable || '_LOG',
			ErrorTable1 = @TargetDatabase || '.' || @TargetTable || '_E1',
			ErrorTable2 = @TargetDatabase || '.' || @TargetTable || '_E2'
             )
         )
		SELECT * FROM OPERATOR($FILE_READER( DELIMITED  @TargetDatabase || '.' || @TargetTable ) );
     );
);

If I have understood correctly, the schema will be inferred from the target table
This is working fine when I have a table defined as:

CREATE MULTISET TABLE MYDATABASE.MYTABLE

     (   cola TIMESTAMP(6) FORMAT 'YYYY/MM/DDbHH:MI:SS')

 

and data:

 

2015/09/09 06:24:02

 

BUT, this is not the format my data is coming in.  What I really want to get working is for data such as:

 

08/09/2015 06:24:02

 

So, I am using this table structure:

 

CREATE MULTISET TABLE MYDATABASE.MYTABLE      

(       cola TIMESTAMP(6) FORMAT 'DD/MM/YYYYbHH:MI:SS')

 

However, I then get an error 6760.  I don't understand why?  Isn't the date format being taken from the table DDL?  This approach seems to have worked ok with dates previously.

 

 

 

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>