<?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: CodeGen way to slow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53969#M59820</link>
    <description>&lt;P&gt;As an experiment, it would be interesting to try the query with the same data using a different data format, e.g., text. You can do a quick CREATE TABLE test as SELECT * FROM &amp;lt;original_table&amp;gt; and the retry the query.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 04:45:50 GMT</pubDate>
    <dc:creator>alex.behm</dc:creator>
    <dc:date>2017-04-21T04:45:50Z</dc:date>
    <item>
      <title>CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53967#M59818</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;using impala 2.7(8) with cdh5.10.1 here.&amp;nbsp;&lt;BR /&gt;I am trying a simple query :&amp;nbsp;&lt;BR /&gt;`select distinct(date_col_partition) from table_1`&lt;BR /&gt;&lt;BR /&gt;and it is taking 20 sec.&amp;nbsp;&lt;BR /&gt;But When I do a&amp;nbsp;set DISABLE_CODEGEN=true;&lt;/P&gt;&lt;P&gt;It take only less than a second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the profle gist:&amp;nbsp;&lt;A href="https://gist.github.com/anonymous/1a5faa3a10d4495f7b8abc3c964457db" target="_blank"&gt;https://gist.github.com/anonymous/1a5faa3a10d4495f7b8abc3c964457db&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea of what is going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53967#M59818</guid>
      <dc:creator>maurin</dc:creator>
      <dc:date>2022-09-16T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53968#M59819</link>
      <description>&lt;P&gt;Hi Maurin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for posting, this is pretty interesting. What is the type of your "&lt;SPAN&gt;cuberon_event_date" column?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:42:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53968#M59819</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-04-21T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53969#M59820</link>
      <description>&lt;P&gt;As an experiment, it would be interesting to try the query with the same data using a different data format, e.g., text. You can do a quick CREATE TABLE test as SELECT * FROM &amp;lt;original_table&amp;gt; and the retry the query.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:45:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53969#M59820</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-04-21T04:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53970#M59821</link>
      <description>&lt;P&gt;It is a string of that look like "YYYY-MM-DD"&lt;BR /&gt;the table is stored as avro. I can try using parquet or text if you want&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:57:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53970#M59821</guid>
      <dc:creator>maurin</dc:creator>
      <dc:date>2017-04-21T04:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53971#M59822</link>
      <description>&lt;P&gt;Thanks. Trying Parquet would help. Just want to see of the high optimization time in codegen is due to some glitch for Avro.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 05:06:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53971#M59822</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-04-21T05:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53972#M59823</link>
      <description>&lt;P&gt;Does the table have a lot of columns or anything unusual like that?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 05:27:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53972#M59823</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2017-04-21T05:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53973#M59824</link>
      <description>&lt;P&gt;it seems to be coming from avro.&amp;nbsp;&lt;BR /&gt;I created the table as parquet and it took 0.48sec.&lt;BR /&gt;The table have about 900 columns, so nothing to fancy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 06:10:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53973#M59824</guid>
      <dc:creator>maurin</dc:creator>
      <dc:date>2017-04-21T06:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53974#M59825</link>
      <description>&lt;P&gt;Thanks for investigating. We've confirmed internally that the issue is related to Avro with many columns. 900 is somewhat wide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reporting! We'll continue to look into this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 06:14:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53974#M59825</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-04-21T06:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53980#M59826</link>
      <description>&lt;P&gt;thanks!&lt;BR /&gt;If you open a jira, can you send me the link?&lt;BR /&gt;I will probably disable codegen for now. And wait until you push a fix to re enable it.&amp;nbsp;&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:32:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53980#M59826</guid>
      <dc:creator>maurin</dc:creator>
      <dc:date>2017-04-21T08:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: CodeGen way to slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53995#M59827</link>
      <description>&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/IMPALA-5243" target="_blank"&gt;https://issues.apache.org/jira/browse/IMPALA-5243&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:50:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CodeGen-way-to-slow/m-p/53995#M59827</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-04-21T14:50:50Z</dc:date>
    </item>
  </channel>
</rss>

