ashish-kumar-sharma commented on a change in pull request #2686:
URL: https://github.com/apache/hive/pull/2686#discussion_r719570755
##########
File path:
ql/src/test/org/apache/hadoop/hive/ql/udf/generic/TestGenericUDFToUnixTimestamp.java
##########
@@ -167,7 +167,15 @@ public void testStringArg2() throws HiveException {
runAndVerify(udf2,
new Text("1400-02-01 00:00:00 ICT"),
new Text("yyyy-MM-dd HH:mm:ss z"),
- new LongWritable(TimestampTZUtil.parse("1400-02-01 00:00:00",
ZoneId.systemDefault()).getEpochSecond()));
+ new LongWritable(TimestampTZUtil.parse("1400-01-31 09:00:22",
ZoneId.systemDefault()).getEpochSecond()));
Review comment:
Yes Since the input is in ICT which is time of vietnam i.e. UTC
+07:06:40 and PDT is UTC -07:52:58 So the total comes to "1400-01-31 09:00:22"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]