<?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 Obtain refresh mode from within Delta Live Table pipeline run in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97767#M39537</link>
    <description>&lt;P&gt;Is it possible to obtain somehow if a DLT pipeline run is running in Full Refresh or incremental mode from within a notebook running in the pipeline?I looked into the pipeline configuration variables but could not find anything.&lt;/P&gt;&lt;P&gt;It would be benefitial to have this information from within the code and do something different in case of a full refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My workaround is so far to have two pipeline jobs and set a config variable if it is running in full refresh, but when executing the pipeline manually this gets dangerous since I have to remind myself to the the value to the correct refresh type.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 14:33:04 GMT</pubDate>
    <dc:creator>NemesisMF</dc:creator>
    <dc:date>2024-11-05T14:33:04Z</dc:date>
    <item>
      <title>Obtain refresh mode from within Delta Live Table pipeline run</title>
      <link>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97767#M39537</link>
      <description>&lt;P&gt;Is it possible to obtain somehow if a DLT pipeline run is running in Full Refresh or incremental mode from within a notebook running in the pipeline?I looked into the pipeline configuration variables but could not find anything.&lt;/P&gt;&lt;P&gt;It would be benefitial to have this information from within the code and do something different in case of a full refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My workaround is so far to have two pipeline jobs and set a config variable if it is running in full refresh, but when executing the pipeline manually this gets dangerous since I have to remind myself to the the value to the correct refresh type.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 14:33:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97767#M39537</guid>
      <dc:creator>NemesisMF</dc:creator>
      <dc:date>2024-11-05T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain refresh mode from within Delta Live Table pipeline run</title>
      <link>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97789#M39548</link>
      <description>&lt;P&gt;You can use the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pipeline_run_config = get_current_pipeline_run_config()

# Create a StartUpdate object from the pipeline run configuration
start_update = StartUpdate.from_dict(pipeline_run_config)

# Check if the pipeline run is a full refresh
if start_update.full_refresh:
    print("The pipeline is running in Full Refresh mode.")
else:
    print("The pipeline is running in Incremental mode.")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:10:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97789#M39548</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-11-05T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain refresh mode from within Delta Live Table pipeline run</title>
      <link>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97794#M39551</link>
      <description>&lt;P&gt;Thanks for the quick answer. Where did you get the&lt;/P&gt;&lt;PRE&gt;get_current_pipeline_run_config()&lt;/PRE&gt;&lt;P&gt;from? I used spark.conf.getAll which apperently does not have the refresh mode info.&lt;/P&gt;&lt;PRE&gt;StartUpdate&lt;/PRE&gt;&lt;P&gt;comes from the databricks.sdk.service.pipelines?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:05:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97794#M39551</guid>
      <dc:creator>NemesisMF</dc:creator>
      <dc:date>2024-11-05T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain refresh mode from within Delta Live Table pipeline run</title>
      <link>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97812#M39561</link>
      <description>&lt;P&gt;I am looking further on this with our teams, can you please provide us with more context on your usecase for this information?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 19:32:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/97812#M39561</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-11-05T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain refresh mode from within Delta Live Table pipeline run</title>
      <link>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/98628#M39766</link>
      <description>&lt;P&gt;We found a solution where we do not need to determine the refresh mode anymore. But I still do not know how to get the current refresh mode of the current pipeline run from within a notebook that is running in the pipeline. This may would still be beneficial to others.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 08:02:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/obtain-refresh-mode-from-within-delta-live-table-pipeline-run/m-p/98628#M39766</guid>
      <dc:creator>NemesisMF</dc:creator>
      <dc:date>2024-11-13T08:02:51Z</dc:date>
    </item>
  </channel>
</rss>

