<?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: Delta Tables - Query folding? in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4128894#M3843</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/437984"&gt;@frithjof_v&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, Power Query does not support query folding for Delta Lake tables. This means that transformations like filters or column selections applied in Power Query may not be pushed back to the Delta Lake table, and instead, they are processed locally within Power Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Power Query, Query Folding refers to converting a data transformation step into a single query statement that the source database can execute. This means that Power Query pushes the data transformation step to the data source for execution whenever possible, rather than processing all the data in Power Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to know more about query folding see the official documentation below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/query-folding-basics#query-folding-overview" target="_blank"&gt;Understanding query evaluation and query folding in Power Query - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 05:41:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-02T05:41:55Z</dc:date>
    <item>
      <title>Delta Tables - Query folding?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4128249#M3835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Delta Lake table in the Files section of my Lakehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frithjof_v_0-1725185553103.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1160400iB22CF564A1B4D0A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frithjof_v_0-1725185553103.png" alt="frithjof_v_0-1725185553103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can connect to this table like this in Power BI Desktop:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frithjof_v_1-1725185174184.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1160398iD333CE52D8D2BFF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="frithjof_v_1-1725185174184.png" alt="frithjof_v_1-1725185174184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the M code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frithjof_v_2-1725185285890.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1160399i3EEC339CCC437CF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="frithjof_v_2-1725185285890.png" alt="frithjof_v_2-1725185285890.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will the query fold?&lt;/P&gt;&lt;P&gt;I mean, if I apply some transformation steps e.g. filters or choose columns in Power Query, will those operations be foldable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem to fold, based on the query folding indicator in Power BI Desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why I don't want to query the SQL Analytics Endpoint, is due to the potential for sync delays between Lakehouse and SQL Analytics Endpoint. That's why I connected Power Query directly to the delta table in the "Lake" part of the Lakehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if Power Query can run foldable queries directly on Delta Lake tables (without querying the SQL Analytics Endpoint)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ref. also&amp;nbsp;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/read-data-from-delta-lake-tables-with-the-deltalake-table-m-function/" target="_blank" rel="noopener"&gt;https://blog.fabric.microsoft.com/en-us/blog/read-data-from-delta-lake-tables-with-the-deltalake-table-m-function/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 17:32:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4128249#M3835</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-09-01T17:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Tables - Query folding?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4128894#M3843</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/437984"&gt;@frithjof_v&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, Power Query does not support query folding for Delta Lake tables. This means that transformations like filters or column selections applied in Power Query may not be pushed back to the Delta Lake table, and instead, they are processed locally within Power Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Power Query, Query Folding refers to converting a data transformation step into a single query statement that the source database can execute. This means that Power Query pushes the data transformation step to the data source for execution whenever possible, rather than processing all the data in Power Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to know more about query folding see the official documentation below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/query-folding-basics#query-folding-overview" target="_blank"&gt;Understanding query evaluation and query folding in Power Query - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 05:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4128894#M3843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-02T05:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Tables - Query folding?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4132275#M3891</link>
      <description>&lt;P&gt;Chris Webb had a great blog post on this topic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2023/12/17/incremental-refresh-on-delta-tables-in-power-bi/" target="_blank"&gt;https://blog.crossjoin.co.uk/2023/12/17/incremental-refresh-on-delta-tables-in-power-bi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As long as you partition the Delta table and configure your query to filter on the partition column, you can do incremental refresh. In other scenarios I don't believe incremental will work without going through the SQL endpoint.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 02:36:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Delta-Tables-Query-folding/m-p/4132275#M3891</guid>
      <dc:creator>andrewb279</dc:creator>
      <dc:date>2024-09-04T02:36:42Z</dc:date>
    </item>
  </channel>
</rss>

