<?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 refresh a single table in Delta Live Tables? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/102792#M41237</link>
    <description>&lt;P&gt;Just wondering if there is a way to do this through code / not using the UI. Its now Dec 2024. We would like to handle this in testing using our workflows&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2024 13:40:50 GMT</pubDate>
    <dc:creator>eballinger</dc:creator>
    <dc:date>2024-12-20T13:40:50Z</dc:date>
    <item>
      <title>How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21149#M14370</link>
      <description>&lt;P&gt;Suppose I have a Delta Live Tables framework with 2 tables: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table 1 ingests from a json source, &lt;/LI&gt;&lt;LI&gt;Table 2 reads from Table 1 and runs some transformation.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In other words, the data flow is json source -&amp;gt; Table 1 -&amp;gt; Table 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I find some bugs in the transformation Table 1 -&amp;gt; Table 2, how can I re-run only the transformation Table 1 -&amp;gt; Table 2 and leave Table 1 intact? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use Full Refresh, it would refresh Table 1 &amp;amp; rerun the json ingestion as well...&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 09:14:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21149#M14370</guid>
      <dc:creator>tinai_long</dc:creator>
      <dc:date>2022-05-09T09:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21150#M14371</link>
      <description>&lt;P&gt;@Long Tran​&amp;nbsp;, The best way to achieve this would be a work around. If you could sacrifice a row of code in your Table 1 or add a row of Nulls into Table 1 without causing problems for yourself further down your pipeline, I suggest you try this&amp;nbsp;&lt;A href="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-cookbook.html?&amp;amp;_ga=2.133270094.1103449103.1652114313-1298921338.1649864532&amp;amp;_gac=1.22346185.1652195980.Cj0KCQjwmuiTBhDoARIsAPiv6L-xKsVD_XY7C4fjngVwmzCFGX5C10DT4x3BOXV8Qlw5jBPUCyH851QaApxIEALw_wcB#retain-manual-deletes-or-updates" alt="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-cookbook.html?&amp;amp;_ga=2.133270094.1103449103.1652114313-1298921338.1649864532&amp;amp;_gac=1.22346185.1652195980.Cj0KCQjwmuiTBhDoARIsAPiv6L-xKsVD_XY7C4fjngVwmzCFGX5C10DT4x3BOXV8Qlw5jBPUCyH851QaApxIEALw_wcB#retain-manual-deletes-or-updates" target="_blank"&gt;Retain manual deletes or updates&lt;/A&gt;&amp;nbsp;- "You can manually delete or update the record from&amp;nbsp;raw_user_table and do a refresh operation to recompute the downstream tables."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to note that if you are ingesting from a source that has no new data to ingest, the full refresh probably wont re-ingest the same data causing duplication. Try it out on a subsection of your data.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 22:14:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21150#M14371</guid>
      <dc:creator>Dooley</dc:creator>
      <dc:date>2022-05-11T22:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21152#M14373</link>
      <description>&lt;P&gt;Hey @Long Tran​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does @Sara Dooley​&amp;nbsp; response answer your question? If yes, would you be happy to mark it as best so that other members can find the solution more quickly? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 17:27:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21152#M14373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-20T17:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21153#M14374</link>
      <description>&lt;P&gt;Hi, sorry I am new here - how do I mark the answer as resolved? Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 18:42:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21153#M14374</guid>
      <dc:creator>tinai_long</dc:creator>
      <dc:date>2022-06-20T18:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21154#M14375</link>
      <description>&lt;P&gt;sorry for the delayed response, &lt;A href="https://community.databricks.com/s/profile/0053f000000WlMdAAK" alt="https://community.databricks.com/s/profile/0053f000000WlMdAAK" target="_blank"&gt;User16460565755155528764&lt;/A&gt;'s answer is very helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 18:42:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21154#M14375</guid>
      <dc:creator>tinai_long</dc:creator>
      <dc:date>2022-06-20T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21155#M14376</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 18:43:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21155#M14376</guid>
      <dc:creator>tinai_long</dc:creator>
      <dc:date>2022-06-20T18:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21156#M14377</link>
      <description>&lt;P&gt;Hi @Long Tran​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for getting back to us. It's really great of you to mark the answer as best.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We really appreciate your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you a great Databricks journey ahead!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 15:45:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21156#M14377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-21T15:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21157#M14378</link>
      <description>&lt;P&gt;An update to anyone finding this thread nowadays.&lt;/P&gt;&lt;P&gt;This is possible using the reset.allowed property as documented here: &lt;A href="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-cookbook.html#retain-manual-deletes-or-updates" target="test_blank"&gt;https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-cookbook.html#retain-manual-deletes-or-updates&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 04:48:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/21157#M14378</guid>
      <dc:creator>Felipe</dc:creator>
      <dc:date>2022-06-30T04:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/59725#M31501</link>
      <description>&lt;P&gt;I want to tag onto this thread because I have the same need to refresh only a single table within a larger DLT pipeline. Unfortunately it seems the links in the accepted answer and in Felipe's follow up no longer contain the correct information. Is there a proper way to do this now, in 2024?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 22:14:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/59725#M31501</guid>
      <dc:creator>cpayne_vax</dc:creator>
      <dc:date>2024-02-08T22:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/59825#M31509</link>
      <description>&lt;P&gt;Answering my own question: nowadays (February 2024) this can all be done via the UI.&lt;/P&gt;&lt;P&gt;When viewing your DLT pipeline there is a "Select tables for refresh" button in the header. If you click this, you can select individual tables, and then in the bottom right corner there are options to "Full refresh selection" or "Refresh selection." Select "Full" in order to start your table over clean.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 19:05:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/59825#M31509</guid>
      <dc:creator>cpayne_vax</dc:creator>
      <dc:date>2024-02-09T19:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/102792#M41237</link>
      <description>&lt;P&gt;Just wondering if there is a way to do this through code / not using the UI. Its now Dec 2024. We would like to handle this in testing using our workflows&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 13:40:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/102792#M41237</guid>
      <dc:creator>eballinger</dc:creator>
      <dc:date>2024-12-20T13:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/102969#M41286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/134575"&gt;@eballinger&lt;/a&gt;&amp;nbsp;- Refreshing a single or set of tables in a DLT is possible via code using Databricks SDK.&lt;BR /&gt;&lt;BR /&gt;Please follow the below doc for the same -&amp;nbsp;&lt;A href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html" target="_blank"&gt;https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the above doc, search for `&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;refresh_selection&lt;/EM&gt;&lt;/STRONG&gt;`, it will accept a list of tables that you want to refresh in a pipeline.&lt;BR /&gt;&lt;BR /&gt;Snippet of the same:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RiyazAli_0-1734945911951.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13657i6EFA78C45859C631/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RiyazAli_0-1734945911951.png" alt="RiyazAli_0-1734945911951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 09:27:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/102969#M41286</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-23T09:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a single table in Delta Live Tables?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/103139#M41345</link>
      <description>&lt;P&gt;Thanks Riz,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not worked with the API yet but just tried your suggestion and it worked great. I will share my code for someone else looking for this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;myList &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;"table1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"table6"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#Now run the pipeline&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;update_dlt2 &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; w.pipelines.&lt;/SPAN&gt;&lt;SPAN&gt;start_update&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;refresh_selection&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;myList, &lt;/SPAN&gt;&lt;SPAN&gt;pipeline_id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"my_token_string"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Started pipeline ..."&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Dec 2024 13:54:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-refresh-a-single-table-in-delta-live-tables/m-p/103139#M41345</guid>
      <dc:creator>eballinger</dc:creator>
      <dc:date>2024-12-24T13:54:59Z</dc:date>
    </item>
  </channel>
</rss>

