@@ -18,21 +18,21 @@ CREATE TABLE TIMESTAMP_TBL (d1 timestamp) USING parquet;
1818
1919--  PostgreSQL implicitly casts string literals to data with timestamp types, but
2020--  Spark does not support that kind of implicit casts.
21- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' now' ) );
21+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' now' 
2222--  SELECT pg_sleep(0.1);
2323
2424--  BEGIN;
2525
2626--  PostgreSQL implicitly casts string literals to data with timestamp types, but
2727--  Spark does not support that kind of implicit casts.
28- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' now' ) );
29- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' today' ) );
30- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' yesterday' ) );
31- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' tomorrow' ) );
28+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' now' 
29+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' today' 
30+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' yesterday' 
31+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' tomorrow' 
3232--  time zone should be ignored by this data type
33- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' tomorrow EST' ) );
33+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' tomorrow EST' 
3434--  [SPARK-29024] Ignore case while resolving time zones
35- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' tomorrow Zulu' ) );
35+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' tomorrow Zulu' 
3636
3737SELECT  count (* ) AS  One FROM  TIMESTAMP_TBL WHERE  d1 =  timestamp  ' today' 
3838SELECT  count (* ) AS  Three FROM  TIMESTAMP_TBL WHERE  d1 =  timestamp  ' tomorrow' 
@@ -60,7 +60,7 @@ TRUNCATE TABLE TIMESTAMP_TBL;
6060--  INSERT INTO TIMESTAMP_TBL VALUES ('infinity');
6161--  PostgreSQL implicitly casts string literals to data with timestamp types, but
6262--  Spark does not support that kind of implicit casts.
63- INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ( ' epoch' ) );
63+ INSERT INTO  TIMESTAMP_TBL VALUES  (timestamp ' epoch' 
6464--  [SPARK-27923] Spark SQL insert there obsolete special values to NULL
6565--  Obsolete special values
6666--  INSERT INTO TIMESTAMP_TBL VALUES ('invalid');
0 commit comments