Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.0, 3.1.1, 3.1.2, 4.0.0
Description
Hive 1.2.1:
select date_format('1400-01-14 01:00:00', 'yyyy-MM-dd HH:mm:ss z'); +--------------------------+--+ | _c0 | +--------------------------+--+ | 1400-01-14 01:00:00 ICT | +--------------------------+--+ select date_format('1800-01-14 01:00:00', 'yyyy-MM-dd HH:mm:ss z'); +--------------------------+--+ | _c0 | +--------------------------+--+ | 1800-01-14 01:00:00 ICT | +--------------------------+--+
Hive 3.1, Hive 4.0:
select date_format('1400-01-14 01:00:00', 'yyyy-MM-dd HH:mm:ss z'); +--------------------------+ | _c0 | +--------------------------+ | 1400-01-06 01:17:56 ICT | +--------------------------+ select date_format('1800-01-14 01:00:00', 'yyyy-MM-dd HH:mm:ss z'); +--------------------------+ | _c0 | +--------------------------+ | 1800-01-14 01:17:56 ICT | +--------------------------+
VM timezone is set to 'Asia/Bangkok'
Attachments
Issue Links
- depends upon
-
HIVE-25093 date_format() UDF is returning output in UTC time zone only
- Closed
- is caused by
-
HIVE-12192 Hive should carry out timestamp computations in UTC
- Closed
-
HIVE-20007 Hive should carry out timestamp computations in UTC
- Closed
- is related to
-
HIVE-27673 Configurable datetime formatter for date_format
- Closed
- links to