<?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: Date Format in Impala in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Date-Format-in-Impala/m-p/204383#M71393</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/39249/gayathrimtechcse.html" nodeid="39249"&gt;@Gayathri Devi&lt;/A&gt;&lt;P&gt;Instead of&lt;STRONG&gt; cast &lt;/STRONG&gt;you need to use &lt;STRONG&gt;from_unixtime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try the below query will result correct outputs as you are expecting&lt;/P&gt;&lt;PRE&gt;hive# select from_unixtime(unix_timestamp('161223000001' ,'yyMMddhhmmss'), 'yyyy-MM-dd HH:mm:ss');
+----------------------+--+
|         _c0          |
+----------------------+--+
| 2016-12-23 00:00:01  |
+----------------------+--+
&lt;BR /&gt;hive# select from_unixtime(unix_timestamp('161223000001' ,'yyMMddhhmmss'), 'yyyy-MM-dd hh:mm:ss');
+----------------------+--+
|         _c0          |
+----------------------+--+
| 2016-12-23 12:00:01  |
+----------------------+--+&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Nov 2017 21:41:07 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2017-11-16T21:41:07Z</dc:date>
    <item>
      <title>Date Format in Impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Date-Format-in-Impala/m-p/204382#M71392</link>
      <description />
      <pubDate>Thu, 16 Nov 2017 12:36:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Date-Format-in-Impala/m-p/204382#M71392</guid>
      <dc:creator>Gayathridevi</dc:creator>
      <dc:date>2017-11-16T12:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Date-Format-in-Impala/m-p/204383#M71393</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/39249/gayathrimtechcse.html" nodeid="39249"&gt;@Gayathri Devi&lt;/A&gt;&lt;P&gt;Instead of&lt;STRONG&gt; cast &lt;/STRONG&gt;you need to use &lt;STRONG&gt;from_unixtime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try the below query will result correct outputs as you are expecting&lt;/P&gt;&lt;PRE&gt;hive# select from_unixtime(unix_timestamp('161223000001' ,'yyMMddhhmmss'), 'yyyy-MM-dd HH:mm:ss');
+----------------------+--+
|         _c0          |
+----------------------+--+
| 2016-12-23 00:00:01  |
+----------------------+--+
&lt;BR /&gt;hive# select from_unixtime(unix_timestamp('161223000001' ,'yyMMddhhmmss'), 'yyyy-MM-dd hh:mm:ss');
+----------------------+--+
|         _c0          |
+----------------------+--+
| 2016-12-23 12:00:01  |
+----------------------+--+&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:41:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Date-Format-in-Impala/m-p/204383#M71393</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-11-16T21:41:07Z</dc:date>
    </item>
  </channel>
</rss>

