<?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: Performance Reduced after Removing ORDER BY clause in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Performance-Reduced-after-Removing-ORDER-BY-clause/m-p/29225#M6464</link>
    <description>&lt;P&gt;None of Impala's supported file formats are able to store data in sorted order on disk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the ORDER BY clause in the INSERT does not&amp;nbsp;have any effect. The data is written out in a potentially unsorted order regardless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2015 00:52:16 GMT</pubDate>
    <dc:creator>HenryR</dc:creator>
    <dc:date>2015-07-03T00:52:16Z</dc:date>
    <item>
      <title>Performance Reduced after Removing ORDER BY clause</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Performance-Reduced-after-Removing-ORDER-BY-clause/m-p/29224#M6463</link>
      <description>&lt;P&gt;Hi dear experts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i trying to play with Impala optimizations and for optimizing datastore want to apply order by construction during insert operation, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;create table tab_parquet like tab_text stored as parquet;
insert into tab_parquet select * from tab_text order by col1;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but got:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;An ORDER BY appearing in a view, subquery, union operand, or an insert/ctas statement has no effect on the query result unless a LIMIT and/or OFFSET is used in conjunction with the ORDER BY&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goes anybody know how to bypass this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. i use CDH5.4&lt;/P&gt;&lt;PRE&gt;# impala-shell --version
Impala Shell v2.2.0-cdh5 (2ffd73a) built on Tue Apr 21 12:09:21 PDT 2015&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:33:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Performance-Reduced-after-Removing-ORDER-BY-clause/m-p/29224#M6463</guid>
      <dc:creator>fil</dc:creator>
      <dc:date>2022-09-16T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Reduced after Removing ORDER BY clause</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Performance-Reduced-after-Removing-ORDER-BY-clause/m-p/29225#M6464</link>
      <description>&lt;P&gt;None of Impala's supported file formats are able to store data in sorted order on disk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the ORDER BY clause in the INSERT does not&amp;nbsp;have any effect. The data is written out in a potentially unsorted order regardless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2015 00:52:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Performance-Reduced-after-Removing-ORDER-BY-clause/m-p/29225#M6464</guid>
      <dc:creator>HenryR</dc:creator>
      <dc:date>2015-07-03T00:52:16Z</dc:date>
    </item>
  </channel>
</rss>

