<?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 Re: How to identify which columns we need to consider for liquid clustering from a table of 200+ col in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/104087#M41662</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/140072"&gt;@TejeshS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your post!&lt;/P&gt;
&lt;P class="p1"&gt;To determine which columns are most important for liquid clustering in a table with a large number of columns, you should focus on the columns that are most frequently used in query filters and those that can significantly contribute to data skipping and efficient query performance. Here are some guidelines:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;High Cardinality Columns&lt;/STRONG&gt;: Choose columns with high cardinality (i.e., columns with a large number of unique values) as clustering keys. These columns are more likely to benefit from clustering because they can help in efficiently skipping irrelevant data during queries.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Commonly Used Query Filters&lt;/STRONG&gt;: Identify the columns that are most frequently used in query filters. These columns should be prioritized as clustering keys to improve query performance.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Avoid Correlated Columns&lt;/STRONG&gt;: Try not to add correlated columns to clustering keys. For example, if you have both local time and UTC time columns, you only need to add one of them as a clustering key.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Fine-Grained Columns&lt;/STRONG&gt;: Use the most fine-grained column you filter on as the clustering key. For example, if you have columns like event_timestamp, year, month, and date, use event_timestamp as the clustering key. Liquid clustering will automatically manage the data distribution based on the data volume.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Limit the Number of Clustering Columns&lt;/STRONG&gt;: Liquid clustering supports a maximum of 4 columns. Therefore, you should carefully select up to 4 columns that provide the most benefit for clustering.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Data Skew and Distribution&lt;/STRONG&gt;: Consider columns that help manage data skew and distribution. Tables with significant skew in data distribution can benefit from clustering on columns that help balance the data distribution.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="p1"&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta/clustering" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/delta/clustering&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 14:14:12 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-01-03T14:14:12Z</dc:date>
    <item>
      <title>How to identify which columns we need to consider for liquid clustering from a table of 200+ columns</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/104083#M41660</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;In Databricks, when working with a table that has a large number of columns (e.g., 200), it can be challenging to determine which columns are most important for liquid clustering.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective:&amp;nbsp;&lt;/STRONG&gt;The goal is to determine which columns to select based on their ability to meaningfully contribute to the clustering process, thereby improving query performance and insights.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Jan 2025 14:09:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/104083#M41660</guid>
      <dc:creator>TejeshS</dc:creator>
      <dc:date>2025-01-03T14:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which columns we need to consider for liquid clustering from a table of 200+ col</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/104087#M41662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/140072"&gt;@TejeshS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your post!&lt;/P&gt;
&lt;P class="p1"&gt;To determine which columns are most important for liquid clustering in a table with a large number of columns, you should focus on the columns that are most frequently used in query filters and those that can significantly contribute to data skipping and efficient query performance. Here are some guidelines:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;High Cardinality Columns&lt;/STRONG&gt;: Choose columns with high cardinality (i.e., columns with a large number of unique values) as clustering keys. These columns are more likely to benefit from clustering because they can help in efficiently skipping irrelevant data during queries.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Commonly Used Query Filters&lt;/STRONG&gt;: Identify the columns that are most frequently used in query filters. These columns should be prioritized as clustering keys to improve query performance.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Avoid Correlated Columns&lt;/STRONG&gt;: Try not to add correlated columns to clustering keys. For example, if you have both local time and UTC time columns, you only need to add one of them as a clustering key.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Fine-Grained Columns&lt;/STRONG&gt;: Use the most fine-grained column you filter on as the clustering key. For example, if you have columns like event_timestamp, year, month, and date, use event_timestamp as the clustering key. Liquid clustering will automatically manage the data distribution based on the data volume.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Limit the Number of Clustering Columns&lt;/STRONG&gt;: Liquid clustering supports a maximum of 4 columns. Therefore, you should carefully select up to 4 columns that provide the most benefit for clustering.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Data Skew and Distribution&lt;/STRONG&gt;: Consider columns that help manage data skew and distribution. Tables with significant skew in data distribution can benefit from clustering on columns that help balance the data distribution.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="p1"&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta/clustering" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/delta/clustering&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 14:14:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/104087#M41662</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-03T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which columns we need to consider for liquid clustering from a table of 200+ col</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/126076#M47624</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;is it possible to get from system table the columns used in joins &amp;amp; filters of a table being queried?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 21:59:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/126076#M47624</guid>
      <dc:creator>noorbasha534</dc:creator>
      <dc:date>2025-07-22T21:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which columns we need to consider for liquid clustering from a table of 200+ col</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/135836#M50441</link>
      <description>&lt;P&gt;Mentioning&amp;nbsp;&lt;STRONG&gt;High Cardinality Columns &lt;/STRONG&gt;("&lt;SPAN&gt;columns with a large number of unique values"), how is it with primary key column containing a unique value in each row, are they a good or bad candidate for liquid clustering column?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Imagine primary key composed of random number-like strings of a fixed length (i.e. 10 characters).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 12:16:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-identify-which-columns-we-need-to-consider-for-liquid/m-p/135836#M50441</guid>
      <dc:creator>pokornyt</dc:creator>
      <dc:date>2025-10-23T12:16:58Z</dc:date>
    </item>
  </channel>
</rss>

