You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by gs...@apache.org on 2023/02/03 04:45:32 UTC

[hive] branch master updated: HIVE-27004 : DateTimeFormatterBuilder#appendZoneText cannot parse 'UTC+' in Java versions higher than 8. (#4008) (Anmol Sundaram, reviewed by Sai Hemanth G)

This is an automated email from the ASF dual-hosted git repository.

gsaihemanth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 21607c78d31 HIVE-27004 : DateTimeFormatterBuilder#appendZoneText  cannot parse 'UTC+' in Java versions higher than 8. (#4008) (Anmol Sundaram, reviewed by Sai Hemanth G)
21607c78d31 is described below

commit 21607c78d316a0f4caff29ed209e23a50df45c05
Author: AnmolSun <12...@users.noreply.github.com>
AuthorDate: Fri Feb 3 10:15:25 2023 +0530

    HIVE-27004 : DateTimeFormatterBuilder#appendZoneText  cannot parse 'UTC+' in Java versions higher than 8. (#4008) (Anmol Sundaram, reviewed by Sai Hemanth G)
---
 common/src/java/org/apache/hadoop/hive/common/type/TimestampTZUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/src/java/org/apache/hadoop/hive/common/type/TimestampTZUtil.java b/common/src/java/org/apache/hadoop/hive/common/type/TimestampTZUtil.java
index e71e0e85228..690a1ea9b3e 100644
--- a/common/src/java/org/apache/hadoop/hive/common/type/TimestampTZUtil.java
+++ b/common/src/java/org/apache/hadoop/hive/common/type/TimestampTZUtil.java
@@ -79,7 +79,7 @@ public class TimestampTZUtil {
         optionalEnd().optionalEnd();
     // Zone part
     builder.optionalStart().appendLiteral(" ").optionalEnd();
-    builder.optionalStart().appendZoneText(TextStyle.NARROW).optionalEnd();
+    builder.optionalStart().appendZoneOrOffsetId().optionalEnd();
 
     FORMATTER = builder.toFormatter();
   }