<?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: Partition Pruning without constant in query in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41182#M29161</link>
    <description>&lt;P&gt;Yes, that's right.&amp;nbsp;It's enabled for some cases&amp;nbsp;by default (broadcast joins) in Impala 2.5. To enable it for a wider category of joins you can set the query option runtime_filter_mode=global. &amp;nbsp;This setting will become the default in Impala 2.7 because of the performance benefits.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 15:44:59 GMT</pubDate>
    <dc:creator>Tim Armstrong</dc:creator>
    <dc:date>2016-05-23T15:44:59Z</dc:date>
    <item>
      <title>Partition Pruning without constant in query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41135#M29159</link>
      <description>&lt;P&gt;Is it possible to take advantage of partition pruning without specifying the value of the partition column as a constant in the query? Is there a way to get it from another joined small table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, table wallet_month has 1 record with column month_of_year, that has value '2016-05'.&lt;BR /&gt;Table transaction_detail is partitioned on month_of_year, and has 400 partitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the Explain plan, below query still uses all 400 paritions from TD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(*)&lt;BR /&gt;FROM wallet_month WM&lt;BR /&gt;JOIN transaction_detail TD&lt;BR /&gt;AND TD.month_of_year = WM.month_of_year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding a where clause (WHERE WM.month_of_year = '2016-05') gives the desired behavior of only using 1 partition from TD, but I'd like to know if there's another way.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 13:17:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41135#M29159</guid>
      <dc:creator>Rekonn</dc:creator>
      <dc:date>2016-05-21T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Partition Pruning without constant in query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41140#M29160</link>
      <description>&lt;P&gt;Hmm, looks like the functionality I'm looking for is called Dynamic Partition Pruning? (in Impala 2.5 / CDH 5.7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dzone.com/articles/apache-impala-incubating-in-cdh-57-4x-faster-for-b" target="_blank"&gt;https://dzone.com/articles/apache-impala-incubating-in-cdh-57-4x-faster-for-b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 14:12:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41140#M29160</guid>
      <dc:creator>Rekonn</dc:creator>
      <dc:date>2016-05-21T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Partition Pruning without constant in query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41182#M29161</link>
      <description>&lt;P&gt;Yes, that's right.&amp;nbsp;It's enabled for some cases&amp;nbsp;by default (broadcast joins) in Impala 2.5. To enable it for a wider category of joins you can set the query option runtime_filter_mode=global. &amp;nbsp;This setting will become the default in Impala 2.7 because of the performance benefits.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 15:44:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Partition-Pruning-without-constant-in-query/m-p/41182#M29161</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2016-05-23T15:44:59Z</dc:date>
    </item>
  </channel>
</rss>

