<?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: hive unix_timestamp() returns allways one in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23898#M4665</link>
    <description>&lt;P&gt;With the given sintax I get:&lt;/P&gt;&lt;PRE&gt;error while compiling statement: failed: semanticexception [error 10011]: line 1:22 invalid function 'now'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My query:&lt;/P&gt;&lt;PRE&gt;select unix_timestamp(now()) from test_kpi_data;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2015 10:18:16 GMT</pubDate>
    <dc:creator>AlinaGHERMAN</dc:creator>
    <dc:date>2015-01-21T10:18:16Z</dc:date>
    <item>
      <title>hive unix_timestamp() returns allways one</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23872#M4663</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compare a date with today date so I want to use the function&amp;nbsp;unix_timestamp().&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this function returns one (&lt;SPAN&gt;1970-01-01&amp;nbsp;00:00:01).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The servers date is correctly setted up.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I use an AWS infrastructure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What else should I check in order to make this function work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:19:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23872#M4663</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2022-09-16T09:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: hive unix_timestamp() returns allways one</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23897#M4664</link>
      <description>&lt;P&gt;Hi, Alina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select unix_timestamp(now())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 10:02:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23897#M4664</guid>
      <dc:creator>UkrZilla</dc:creator>
      <dc:date>2015-01-21T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: hive unix_timestamp() returns allways one</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23898#M4665</link>
      <description>&lt;P&gt;With the given sintax I get:&lt;/P&gt;&lt;PRE&gt;error while compiling statement: failed: semanticexception [error 10011]: line 1:22 invalid function 'now'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My query:&lt;/P&gt;&lt;PRE&gt;select unix_timestamp(now()) from test_kpi_data;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 10:18:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23898#M4665</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-01-21T10:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: hive unix_timestamp() returns allways one</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23899#M4666</link>
      <description>&lt;P&gt;I guess you mean Impala.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Impala:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select unix_timestamp()&lt;/P&gt;&lt;P&gt;result: 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select unix_timestamp()&lt;/P&gt;&lt;P&gt;result: 1421835925&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 10:26:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-unix-timestamp-returns-allways-one/m-p/23899#M4666</guid>
      <dc:creator>UkrZilla</dc:creator>
      <dc:date>2015-01-21T10:26:44Z</dc:date>
    </item>
  </channel>
</rss>

