<?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 Vs. Impala Queries in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/555#M30</link>
    <description>&lt;P&gt;Thanks for the reply. I was able to figure out the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you though!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2013 17:12:03 GMT</pubDate>
    <dc:creator>gf-sho</dc:creator>
    <dc:date>2013-08-15T17:12:03Z</dc:date>
    <item>
      <title>Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/248#M28</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running into an issue where the same query is giving me different results when ran on hive vs. impala. I can't figure out what the the problem could be that results in the different results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;TO_DATE(dtFirstActive) as valid_date,&lt;BR /&gt;vchpromocode as publisher,&lt;BR /&gt;SUM(CASE WHEN TO_DATE(dtbillingdate) &amp;gt; TO_DATE(dtfirstactive) AND TO_DATE(dtcancel) &amp;lt;&amp;gt; TO_DATE(dtfirstactive) THEN 1 ELSE 0 END) as trials,&lt;BR /&gt;SUM(CASE WHEN TO_DATE(dtbillingdate) &amp;lt;= TO_DATE(dtfirstactive) AND TO_DATE(dtcancel) &amp;lt;&amp;gt; TO_DATE(dtfirstactive) THEN 1 ELSE 0 END) as prepaids,&lt;BR /&gt;SUM(CASE WHEN TO_DATE(dtcancel) = TO_DATE(dtfirstactive) THEN 1 ELSE 0 END) as same_day_cancels,&lt;BR /&gt;FROM sql.Account&lt;BR /&gt;WHERE vchPromocode = 'GFAPPIOS01' or vchPromocode = 'GFAPPIOS02' or vchPromocode = 'GFAPPAND01' or vchPromocode = 'GFAPPAND02'&lt;BR /&gt;GROUP BY TO_DATE(dtFirstActive), vchpromocode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help be would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/248#M28</guid>
      <dc:creator>gf-sho</dc:creator>
      <dc:date>2022-09-16T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/294#M29</link>
      <description>&lt;P&gt;Any chance you could include the DDL and some sample data to allow us to reproduce it?&lt;/P&gt;&lt;P&gt;What versions of Impala &amp;amp; Hive are you running?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2013 18:05:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/294#M29</guid>
      <dc:creator>grahn</dc:creator>
      <dc:date>2013-08-08T18:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/555#M30</link>
      <description>&lt;P&gt;Thanks for the reply. I was able to figure out the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you though!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 17:12:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/555#M30</guid>
      <dc:creator>gf-sho</dc:creator>
      <dc:date>2013-08-15T17:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/677#M31</link>
      <description>&lt;P&gt;In spirit of &lt;A href="http://xkcd.com/979/" target="_blank"&gt;http://xkcd.com/979/&lt;/A&gt; please do post what your specific solution was, so others having the same issue and stumbling here would find it useful!&lt;BR /&gt;&lt;BR /&gt;P.s. You can mark the topic as solved as well.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2013 22:14:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/677#M31</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2013-08-18T22:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/22044#M32</link>
      <description>&lt;P&gt;I have a same issue, the same query returns different dates. In impala the date is one hour less than in Hive.&lt;/P&gt;&lt;P&gt;Table was created in hive, loaded with data via insert overwrite table in hive (table is partitioned).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for example the timestamp 2014-11-18 00:30:00 - 18th of november was correctly written to partition 20141118.&lt;/P&gt;&lt;P&gt;But when I fetch the table in impala, whith condition day_id (partition column) = 20141118 I see a value 2014-11-17 23:30:00&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the difference is one hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I query the minimum and maximum start_time from the table in one partition in the Imapal (partition day_id = 2014118) I get this wrong result:&lt;/P&gt;&lt;P&gt;min( start_time ) = 2014-11-17 23:00&amp;nbsp;&lt;/P&gt;&lt;P&gt;max( start_time ) = 2014-11-18 22:59&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run the same query in Hive the result is ok:&lt;/P&gt;&lt;P&gt;min( start_time ) = 2014-11-18 00:00&lt;/P&gt;&lt;P&gt;max( start_time ) = 2014-11-18 23:59&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 22:17:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/22044#M32</guid>
      <dc:creator>TomasTF</dc:creator>
      <dc:date>2014-11-26T22:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/22460#M33</link>
      <description>&lt;P&gt;I solved the issue with&amp;nbsp;from_utc_timestamp(Create_Time, 'CEST').&lt;/P&gt;&lt;P&gt;Impala assumes the the timestamp value is stored in UCT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So converting to central european time with summery daylight saving will produce the correct result.&lt;/P&gt;&lt;P&gt;As far as I know there is no way to tell Impala that the current timezone is CEST, so in every query this conversion should be made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2014 21:39:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/22460#M33</guid>
      <dc:creator>TomasTF</dc:creator>
      <dc:date>2014-12-08T21:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Vs. Impala Queries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/23380#M34</link>
      <description>&lt;P&gt;More interestingly this differencce dissappeared after upgrading to CDH 5.3.1.&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 09:12:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Vs-Impala-Queries/m-p/23380#M34</guid>
      <dc:creator>TomasTF</dc:creator>
      <dc:date>2015-01-07T09:12:46Z</dc:date>
    </item>
  </channel>
</rss>

