<?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: refresh online table: How to get update_id and check status of a specific update in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102742#M41221</link>
    <description>&lt;P&gt;Another qq: Since online table has 3 sync mode: Snapshot, Triggered, and Continuous.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;when refreshing the online table with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;w.pipelines.start_update(pipeline_id='{pipeline_id}', full_refresh=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;which sync mode is used by default?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 23:20:21 GMT</pubDate>
    <dc:creator>lauraxyz</dc:creator>
    <dc:date>2024-12-19T23:20:21Z</dc:date>
    <item>
      <title>refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102596#M41174</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a workflow job to trigger a refresh of an online table. How can I get the update_id with this specific refresh?&lt;/P&gt;&lt;P&gt;Also, is it possible to get the status from this specific update_id?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 23:50:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102596#M41174</guid>
      <dc:creator>lauraxyz</dc:creator>
      <dc:date>2024-12-18T23:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102598#M41175</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To get the update_id for a specific refresh of an online table and retrieve its status, you can follow these steps:&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 class="mb-2 mt-6 text-lg first:mt-3"&gt;Obtaining the update_id&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;When you trigger a refresh of an online table through a workflow job, you can typically access the update_id in one of two ways:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL class="marker:text-textOff list-decimal pl-8"&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Workflow output&lt;/STRONG&gt;: Many workflow systems provide a way to capture the output or return value of the refresh operation. Check your workflow execution logs or output variables for the update_id.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Query the event log&lt;/STRONG&gt;: If the workflow doesn't directly provide the update_id, you can query the event log to find the most recent update for your table.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-textMainDark selection:!text-superDark selection:bg-superDuper/10 bg-offset dark:bg-offsetDark my-md relative flex flex-col rounded font-mono text-sm font-thin"&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV class="pr-lg"&gt;&lt;SPAN&gt;&lt;CODE&gt;&lt;SPAN class="token token"&gt;SELECT&lt;/SPAN&gt; origin&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;update_id &lt;SPAN class="token token"&gt;AS&lt;/SPAN&gt; id
&lt;SPAN class="token token"&gt;FROM&lt;/SPAN&gt; event_log_raw
&lt;SPAN class="token token"&gt;WHERE&lt;/SPAN&gt; event_type &lt;SPAN class="token token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;'create_update'&lt;/SPAN&gt;
&lt;SPAN class="token token"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;BY&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;timestamp&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;DESC&lt;/SPAN&gt;
&lt;SPAN class="token token"&gt;LIMIT&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token token punctuation"&gt;;&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;This query will return the update_id of the most recent update operation&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 class="mb-2 mt-6 text-lg first:mt-3"&gt;Retrieving the status&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;Once you have the update_id, you can query the status of that specific update:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-textMainDark selection:!text-superDark selection:bg-superDuper/10 bg-offset dark:bg-offsetDark my-md relative flex flex-col rounded font-mono text-sm font-thin"&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV class="pr-lg"&gt;&lt;SPAN&gt;&lt;CODE&gt;&lt;SPAN class="token token"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;status&lt;/SPAN&gt;
&lt;SPAN class="token token"&gt;FROM&lt;/SPAN&gt; event_log_raw
&lt;SPAN class="token token"&gt;WHERE&lt;/SPAN&gt; event_type &lt;SPAN class="token token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;'update_progress'&lt;/SPAN&gt;
&lt;SPAN class="token token operator"&gt;AND&lt;/SPAN&gt; origin&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;update_id &lt;SPAN class="token token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;'&amp;lt;your_update_id&amp;gt;'&lt;/SPAN&gt;
&lt;SPAN class="token token"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;BY&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;timestamp&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;DESC&lt;/SPAN&gt;
&lt;SPAN class="token token"&gt;LIMIT&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token token punctuation"&gt;;&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Replace&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;CODE&gt;&amp;lt;your_update_id&amp;gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;with the actual update_id you obtained&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 00:51:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102598#M41175</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-12-19T00:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102741#M41220</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Yes i'm able to get update_id.&amp;nbsp; &amp;nbsp;For getting status, is there a way to get it with Databricks SDK, something like `w.refresh_monitors.get_refresh({update_id})`?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 23:11:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102741#M41220</guid>
      <dc:creator>lauraxyz</dc:creator>
      <dc:date>2024-12-19T23:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102742#M41221</link>
      <description>&lt;P&gt;Another qq: Since online table has 3 sync mode: Snapshot, Triggered, and Continuous.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;when refreshing the online table with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;w.pipelines.start_update(pipeline_id='{pipeline_id}', full_refresh=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;which sync mode is used by default?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 23:20:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102742#M41221</guid>
      <dc:creator>lauraxyz</dc:creator>
      <dc:date>2024-12-19T23:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102973#M41288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133340"&gt;@lauraxyz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given you have your update_id, we can retrieve the status of the DLT pipeline using the below class from &lt;A href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html" target="_self"&gt;Databricks SDK&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RiyazAli_0-1734947064158.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13658i1279A9387F6C579E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RiyazAli_0-1734947064158.png" alt="RiyazAli_0-1734947064158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 09:45:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102973#M41288</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-23T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102990#M41290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133340"&gt;@lauraxyz&lt;/a&gt;,&amp;nbsp;the class &lt;EM&gt;&lt;STRONG&gt;pipelines.StartUpdate&lt;/STRONG&gt;&lt;/EM&gt;, doesn't take any argument to specify mode. I'm assuming that it will trigger in the same mode in which the pipeline is created. Kindly let me know if you find anything to contradict my understanding.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 09:58:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/102990#M41290</guid>
      <dc:creator>RiyazAliM</dc:creator>
      <dc:date>2024-12-23T09:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: refresh online table: How to get update_id and check status of a specific update</title>
      <link>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/103253#M41382</link>
      <description>&lt;P&gt;Thanks Riz! I think you are right, the sync mode was already specified when online table was created.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 18:36:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/refresh-online-table-how-to-get-update-id-and-check-status-of-a/m-p/103253#M41382</guid>
      <dc:creator>lauraxyz</dc:creator>
      <dc:date>2024-12-26T18:36:31Z</dc:date>
    </item>
  </channel>
</rss>

