Hi,
You can't find out which field would give the Invalid Timestamp. Instead, you have to select each field and try to do the cast function.
SELECT cast(col2_dt as timestamp(0))
FROM "STG_OUT".test_data;
SELECT cast(col3_start_dt as timestamp(0))
FROM "STG_OUT".test_data;
SELECT cast(col4_end_dt as timestamp(0))
FROM "STG_OUT".test_data;
Please try to see the Datatype present in the Source Table 'test_date'. If the Datatype is a VARCHAR, then it should contain length of 26. To cast it to Timetsamp.
Hi,
You can't find out which field would give the Invalid Timestamp. Instead, you have to select each field and try to do the cast function.
Please try to see the Datatype present in the Source Table 'test_date'. If the Datatype is a VARCHAR, then it should contain length of 26. To cast it to Timetsamp.