Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Invalid date - datatype declared as varchar - forum topic by cheeli

$
0
0

Hi Experts,
There was an issue once as the job has failed with Invalid date issue.  On further checking, found that the date/timestamp column was declared of the datatype as
VARCHAR(24) CHARACTER SET UNICODE NOT CASESPECIFIC
in staging table. 
1. As the no. of digits in the column is fixed as 8, why are we using 24 which is overhead (I accept that only 8 will be used and the remaining will be free, it could be declared as varchar(8))
2. Using varchar has an overhead of 2 extra bytes to store the length.  Having known the length of the data in the column will be 8 , we are additionally using 2 extra bytes to store for each record.
There should be some kind of performance gains that outperforms the above ones. Can you explain elucidate it. Looking forward to the answers!
 

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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