[ 
https://issues.apache.org/jira/browse/HIVE-25577?focusedWorklogId=658475&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-658475
 ]

ASF GitHub Bot logged work on HIVE-25577:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Sep/21 16:25
            Start Date: 30/Sep/21 16:25
    Worklog Time Spent: 10m 
      Work Description: 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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 658475)
    Time Spent: 50m  (was: 40m)

> unix_timestamp() is ignoring the time zone value
> ------------------------------------------------
>
>                 Key: HIVE-25577
>                 URL: https://issues.apache.org/jira/browse/HIVE-25577
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ashish Sharma
>            Assignee: Ashish Sharma
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> set hive.local.time.zone=Asia/Bangkok;
> Query - SELECT FROM_UNIXTIME(UNIX_TIMESTAMP('2000-01-07 00:00:00 
> GMT','yyyy-MM-dd HH:mm:ss z'));
> Result - 2000-01-07 00:00:00 ICT



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to