<?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: DELETE Managed DELTA Table in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100659#M3618</link>
    <description>&lt;P&gt;I'd suggest you create a support ticket to highlight this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also look at the recommendations in the docs if there's anything to be gained from there: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/sql-analytics-endpoint-performance" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-warehouse/sql-analytics-endpoint-performance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you could also create an Idea at Fabrics Idea to highlight the need for faster sync between the different user interfaces.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 16:32:51 GMT</pubDate>
    <dc:creator>frithjof_v</dc:creator>
    <dc:date>2024-08-14T16:32:51Z</dc:date>
    <item>
      <title>DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4096504#M3570</link>
      <description>&lt;P&gt;During a DEV, I am trying to ingest rows in a delta table and then refining the code further and then delete the rows from the table before running the next ingestion for a follow-up code DEV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am observing that even though, I run the following, the table is not entirely deleting all the rows in a lot of instances. When I refresh the lakehouse and that delta table to verify if it actually deleted all the rows, to my suprise I see the default view of 1000 rows. In reality, I expect it to be 0 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%%sql
--DELETE all rows
DELETE FROM Staging.Lakehouse.dev_ingestion_tbl&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is causing me (time) to manually Delete (SQL TRUNCATE) the table from Lakehouse, run a schema building code to build an empty table to be ready for next test ingestion for enhanced DEV code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why does it keep on happening. I expect DELETE to completely delete all the rows each time I run it, ithout having me to verify the action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need to run (e.g. VACCUM) anything in conjunction to DELETE to make sure it does what I expect it to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 03:11:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4096504#M3570</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-13T03:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4097066#M3576</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/24978"&gt;@smpa01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;After testing, after executing this T-SQL, the data in this table can be deleted normally, and then refresh, there is no data in the table in Lakehouse.Delete works fine in Notebook. Make sure you have permission to modify the table, retry deleting and refreshing.&lt;BR /&gt;&lt;BR /&gt;Notebook:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyaningymsft_1-1723535005137.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1149866iFDBD7F24A7980915/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyaningymsft_1-1723535005137.png" alt="vyaningymsft_1-1723535005137.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Lakehouse:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyaningymsft_2-1723535499183.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1149880i53107A707888B9D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyaningymsft_2-1723535499183.png" alt="vyaningymsft_2-1723535499183.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyaningymsft_3-1723535513849.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1149881i6CA47B5B29650E09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyaningymsft_3-1723535513849.png" alt="vyaningymsft_3-1723535513849.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="text-align: justify; text-justify: inter-ideograph;"&gt;&lt;SPAN&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Yang&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Community Support Team&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;If there is any post &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Accept it as the solution&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;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. &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;U&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365912356%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=7IzyI2%2FMOAR%2FYCjWYSKCZL2VPmT4PsxuWBjdUdMWKzo%3D&amp;amp;reserved=0" target="_blank"&gt;How to get your questions answered quickly&lt;/A&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;-- &lt;/SPAN&gt;&lt;U&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365919045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=VeafzdwAsrpisD8s261%2FdyOwJ1aCtBXS3bPA6NODOHY%3D&amp;amp;reserved=0" target="_blank"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 07:57:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4097066#M3576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T07:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4097688#M3585</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp; I see this however.&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="smpa01_1-1723554073686.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1150061i1FE348A992A2ECDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smpa01_1-1723554073686.png" alt="smpa01_1-1723554073686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt; Make sure you have permission to modify the table, retry deleting and refreshing" - &lt;/STRONG&gt;yes, I am the admin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 13:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4097688#M3585</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-13T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4099382#M3600</link>
      <description>&lt;P&gt;Perhaps it's the sync between Lakehouse and SQL Analytics Endpoint which is taking a long time in your case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if you run&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%%sql&lt;/P&gt;&lt;P&gt;SELECT Count(*) FROM tableName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the Notebook in the next cell after you run the truncate or delete rows. Perhaps this will show that the table is indeed empty, even if the SQL Analytics Endpoint doesn't know that yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/sql-analytics-endpoint-performance" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-warehouse/sql-analytics-endpoint-performance&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 06:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4099382#M3600</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-14T06:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100390#M3610</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/437984"&gt;@frithjof_v&lt;/a&gt;&amp;nbsp; "&lt;STRONG&gt;What if you run" - &lt;/STRONG&gt;it will probably show 0. But it is extremely annoying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that is not onlly issue. assuming there is a lag between sql end point and lakehouse, I do expect the the lakehouse table view to show a 0 row table. Bu that is not the case sadly. Also, I don't want to truncate the table as it holds the required schema and partitions. I just need it to delete all the rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently not being able to verify that either by SQL end point (does not show 0) or visually by looking at the lakehouse explorer (does not show an empty table)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 13:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100390#M3610</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-14T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100536#M3613</link>
      <description>&lt;P&gt;Did you try clicking all the refresh buttons in the Lakehouse view?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 15:17:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100536#M3613</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-14T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100645#M3617</link>
      <description>&lt;P&gt;Goes without saying&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 16:13:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100645#M3617</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-14T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE Managed DELTA Table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100659#M3618</link>
      <description>&lt;P&gt;I'd suggest you create a support ticket to highlight this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also look at the recommendations in the docs if there's anything to be gained from there: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/sql-analytics-endpoint-performance" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-warehouse/sql-analytics-endpoint-performance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you could also create an Idea at Fabrics Idea to highlight the need for faster sync between the different user interfaces.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 16:32:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DELETE-Managed-DELTA-Table/m-p/4100659#M3618</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-14T16:32:51Z</dc:date>
    </item>
  </channel>
</rss>

