Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, lots of time related functions are returning TIMESTAMP type, including PROCTIME(), NOW(), LOCALTIMESTAMP,etc. However, they should return TIMESTAMP WIHT LOCAL TIME ZONE type. The session time zone will be used when converting TIMESTAMP WITH LOCAL TIME ZONE to string, but not for TIMESTAMP type.
That's why many users report the result is incorrect with 8 hours when converting these functions to string.
Attachments
Issue Links
- is related to
-
FLINK-20387 Support defining event time attribute on TIMESTAMP_LTZ column
- Closed
-
FLINK-18206 The timestamp is displayed incorrectly
- Closed
-
FLINK-11223 Time zone problem for time processing function
- Closed
-
FLINK-16938 SqlTimestamp has lag when convert long to Timestamp
- Closed
-
FLINK-16889 Support converting BIGINT to TIMESTAMP for TO_TIMESTAMP function
- Closed
-
FLINK-19757 TimeStampData can cause time inconsistent problem
- Closed
- relates to
-
FLINK-21617 FLIP-162: Consistent Flink SQL time function behavior
- Resolved