This is an automated email from the ASF dual-hosted git repository. zabetak pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
commit 798d25c61262d872d756b5c73d38172fe1293207 Author: Stamatis Zampetakis <zabe...@gmail.com> AuthorDate: Fri Jun 3 18:46:47 2022 +0200 HIVE-26290: Remove useless calls to DateTimeFormatter#withZone without assignment (Stamatis Zampetakis, reviewed by Ayush Saxena) Closes #3342 --- .../org/apache/hadoop/hive/ql/udf/generic/GenericUDFFromUnixTime.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFFromUnixTime.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFFromUnixTime.java index fb634bc7c97..21081cf7c11 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFFromUnixTime.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFFromUnixTime.java @@ -88,7 +88,6 @@ public class GenericUDFFromUnixTime extends GenericUDF { if (timeZone == null) { timeZone = SessionState.get() == null ? new HiveConf().getLocalTimeZone() : SessionState.get().getConf() .getLocalTimeZone(); - FORMATTER.withZone(timeZone); } return PrimitiveObjectInspectorFactory.writableStringObjectInspector; @@ -99,7 +98,6 @@ public class GenericUDFFromUnixTime extends GenericUDF { if (context != null) { String timeZoneStr = HiveConf.getVar(context.getJobConf(), HiveConf.ConfVars.HIVE_LOCAL_TIME_ZONE); timeZone = TimestampTZUtil.parseTimeZone(timeZoneStr); - FORMATTER.withZone(timeZone); } }