Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.0
-
None
Description
For example with the table:
CREATE TABLE myTable ( a TIMESTAMP ) STORED AS ORC tblproperties("transactional"="true");
The following inserts store the wrong data:
INSERT INTO myTable VALUES("2018-10-19 10:35:00 UTC"); -> 2018-10-19 00:00:00.0 INSERT INTO myTable VALUES("2018-10-19 10:35:00 ZZZ"); -> 2018-10-19 00:00:00.0
The second one should fail since ZZZ is not a time zone.
Similarly if the column is of type DATE,
INSERT INTO myTableDate VALUES("2018-10-19 AAAA"); -> 2018-10-19