<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: CURRENT_TIMESTAMP timezone in hive 3.1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CURRENT-TIMESTAMP-timezone-in-hive-3-1/m-p/238692#M85501</link>
    <description>&lt;P&gt;It was confirmed as a bug - &lt;A href="https://issues.apache.org/jira/browse/HIVE-21039" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-21039&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 07:12:45 GMT</pubDate>
    <dc:creator>andrey_zinovyev</dc:creator>
    <dc:date>2018-12-14T07:12:45Z</dc:date>
    <item>
      <title>CURRENT_TIMESTAMP timezone in hive 3.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CURRENT-TIMESTAMP-timezone-in-hive-3-1/m-p/238691#M85500</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;We're upgrading from hdp-2.6 to hdp-3.0.1 (from hive 1.2 to 3.1) and it seems like new hive returns CURRENT_TIMESTAMP in UTC timezone. But before it was in local (system's default) timezone.&lt;/P&gt;&lt;P&gt;
According to HIVE-5472 current_timestamp should use user's local timezone. This behaviour was changed in HIVE-12192  (if I got it right). GenericUDFCurrentTimestamp now explicitly uses UTC as timezone to initialise org.apache.hadoop.hive.common.type.Timestamp&lt;/P&gt;&lt;P&gt; 
Is it some intentional change or some misconfiguration from on our side?&lt;/P&gt;&lt;P&gt;
For example&lt;/P&gt;&lt;P&gt;
Old hive:&lt;/P&gt;&lt;P&gt;
hive&amp;gt; select current_timestamp;&lt;/P&gt;&lt;P&gt;
OK
2018-12-12 22:43:39.024&lt;/P&gt;&lt;P&gt;
New hive:&lt;/P&gt;&lt;P&gt;
&amp;gt; select current_timestamp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;+--------------------------+
|           _c0            |
+--------------------------+&lt;/DIV&gt;&lt;DIV&gt; | 2018-12-12 19:43:57.024  |&lt;/DIV&gt;&lt;DIV&gt; +--------------------------+ &lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Dec 2018 12:51:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CURRENT-TIMESTAMP-timezone-in-hive-3-1/m-p/238691#M85500</guid>
      <dc:creator>andrey_zinovyev</dc:creator>
      <dc:date>2018-12-13T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: CURRENT_TIMESTAMP timezone in hive 3.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CURRENT-TIMESTAMP-timezone-in-hive-3-1/m-p/238692#M85501</link>
      <description>&lt;P&gt;It was confirmed as a bug - &lt;A href="https://issues.apache.org/jira/browse/HIVE-21039" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-21039&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 07:12:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CURRENT-TIMESTAMP-timezone-in-hive-3-1/m-p/238692#M85501</guid>
      <dc:creator>andrey_zinovyev</dc:creator>
      <dc:date>2018-12-14T07:12:45Z</dc:date>
    </item>
  </channel>
</rss>

