Hello! I try to copy data from csv. But it fail with a strange massage
'SQL Error [2035] [22V04]: [Vertica]VJDBC ERROR: COPY: Input record 1 has been rejected (Invalid timestamp format '' for column 2 (mt_ins_dttm).Invalid input syntax for timestamp: "")
[Vertica]VJDBC ERROR: COPY: Input record 1 has been rejected (Invalid timestamp format '' for column 2 (mt_ins_dttm).Invalid input syntax for timestamp: "")
com.vertica.support.exceptions.DataException: [Vertica]VJDBC ERROR: COPY: Input record 1 has been rejected (Invalid timestamp format '' for column 2 (mt_ins_dttm).Invalid input syntax for timestamp: "")
'
Here is my csv
mt_process_id,mt_ins_dttm
973654,2017-08-28 21:52:06.2455712
970574,2017-07-05 21:43:54.6108347
973654,2017-07-10 21:57:38.3974173
970574,2017-07-10 21:57:38.3974173
970574,2017-07-18 22:04:19.2596357
Here is my script
CREATE TABLE sandbox_tableau.test_datetime(
mt_process_id bigint,
mt_ins_dttm datetime );
COPY sandbox_tableau.test_datetime
(
mt_process_id,
mt_ins_dttm
)
from local 'E:\TestVertica\test_datetime.csv' skip 1 ABORT ON ERROR REJECTMAX 0 delimiter ',';
What do I wrong?
Anna
