<?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-running DLT Pipeline Does Not Add Data After Delete in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/re-running-dlt-pipeline-does-not-add-data-after-delete/m-p/43102#M27488</link>
    <description>&lt;P&gt;I am using DLT and unity catalog and using managed tables. The first table in this pipeline is a live streaming table. I first did this in the SQL editor:&lt;/P&gt;&lt;PRE&gt;DELETE FROM my_table;&lt;/PRE&gt;&lt;P&gt;This appears to have deleted all the records, which I wanted since now when I do a SELECT, it shows 0 rows. Then I re-ran the pipeline. This first table is running this command:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;CREATE OR REFRESH&lt;/SPAN&gt;&lt;SPAN&gt; STREAMING LIVE &lt;/SPAN&gt;&lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt; my_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COMMENT &lt;/SPAN&gt;&lt;SPAN&gt;"Data from S3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TBLPROPERTIES (&lt;/SPAN&gt;&lt;SPAN&gt;"myCompanyPipeline.quality"&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"bronze"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT &lt;/SPAN&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; cloud_files(&lt;/SPAN&gt;&lt;SPAN&gt;"s3://my-bucket/path/"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"parquet"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However when this pipeline finishes, the table has no data in it. What am I not understanding?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 01 Sep 2023 18:54:08 GMT</pubDate>
    <dc:creator>dbdude</dc:creator>
    <dc:date>2023-09-01T18:54:08Z</dc:date>
    <item>
      <title>Re-running DLT Pipeline Does Not Add Data After Delete</title>
      <link>https://community.databricks.com/t5/data-engineering/re-running-dlt-pipeline-does-not-add-data-after-delete/m-p/43102#M27488</link>
      <description>&lt;P&gt;I am using DLT and unity catalog and using managed tables. The first table in this pipeline is a live streaming table. I first did this in the SQL editor:&lt;/P&gt;&lt;PRE&gt;DELETE FROM my_table;&lt;/PRE&gt;&lt;P&gt;This appears to have deleted all the records, which I wanted since now when I do a SELECT, it shows 0 rows. Then I re-ran the pipeline. This first table is running this command:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;CREATE OR REFRESH&lt;/SPAN&gt;&lt;SPAN&gt; STREAMING LIVE &lt;/SPAN&gt;&lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt; my_table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COMMENT &lt;/SPAN&gt;&lt;SPAN&gt;"Data from S3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TBLPROPERTIES (&lt;/SPAN&gt;&lt;SPAN&gt;"myCompanyPipeline.quality"&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"bronze"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT &lt;/SPAN&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; cloud_files(&lt;/SPAN&gt;&lt;SPAN&gt;"s3://my-bucket/path/"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"parquet"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However when this pipeline finishes, the table has no data in it. What am I not understanding?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Sep 2023 18:54:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/re-running-dlt-pipeline-does-not-add-data-after-delete/m-p/43102#M27488</guid>
      <dc:creator>dbdude</dc:creator>
      <dc:date>2023-09-01T18:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re-running DLT Pipeline Does Not Add Data After Delete</title>
      <link>https://community.databricks.com/t5/data-engineering/re-running-dlt-pipeline-does-not-add-data-after-delete/m-p/43639#M27525</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/28727"&gt;@Mo&lt;/a&gt;&amp;nbsp;is correct!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 13:06:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/re-running-dlt-pipeline-does-not-add-data-after-delete/m-p/43639#M27525</guid>
      <dc:creator>BilalAslamDbrx</dc:creator>
      <dc:date>2023-09-05T13:06:39Z</dc:date>
    </item>
  </channel>
</rss>

