<?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>topic Column ordering when querying a clustered table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/column-ordering-when-querying-a-clustered-table/m-p/82121#M36527</link>
    <description>&lt;P&gt;If I have a table which is clustered by (a, b, c) and I issue a query filtering on (b, c), will the query benefit from the optimization by the cluster of (a, b, c)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 06:32:29 GMT</pubDate>
    <dc:creator>oripsk</dc:creator>
    <dc:date>2024-08-07T06:32:29Z</dc:date>
    <item>
      <title>Column ordering when querying a clustered table</title>
      <link>https://community.databricks.com/t5/data-engineering/column-ordering-when-querying-a-clustered-table/m-p/82121#M36527</link>
      <description>&lt;P&gt;If I have a table which is clustered by (a, b, c) and I issue a query filtering on (b, c), will the query benefit from the optimization by the cluster of (a, b, c)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 06:32:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/column-ordering-when-querying-a-clustered-table/m-p/82121#M36527</guid>
      <dc:creator>oripsk</dc:creator>
      <dc:date>2024-08-07T06:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Column ordering when querying a clustered table</title>
      <link>https://community.databricks.com/t5/data-engineering/column-ordering-when-querying-a-clustered-table/m-p/82419#M36644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115107"&gt;@oripsk&lt;/a&gt;,&amp;nbsp;When you query a table clustered by columns (a, b, c) and filter on (b, c), the query will not fully benefit from the clustering optimization. Clustering works best when the query filter includes the leading column(s) in the clustering order. In your case, since the filter does not include column ‘a’, the optimization benefits will be limited.&lt;/P&gt;
&lt;P&gt;&lt;A class="tooltip-target" href="https://cloud.google.com/bigquery/docs/clustered-tables" target="_blank" rel="noopener" data-citationid="b404c669-c3d8-c06b-75c2-06208e2ac690-5-group"&gt;For optimal performance, it’s recommended to include the first clustered column in your query filter&lt;/A&gt;. This allows the query engine to effectively use the clustered index to reduce the amount of data scanned.&lt;/P&gt;
&lt;P&gt;Is there a specific use case or dataset you’re working with that you’d like more advice on?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:35:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/column-ordering-when-querying-a-clustered-table/m-p/82419#M36644</guid>
      <dc:creator>Retired_mod</dc:creator>
      <dc:date>2024-08-08T15:35:09Z</dc:date>
    </item>
  </channel>
</rss>

