<?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: Can you use %run or dbutils.notebook.run in a Delta Live Table pipeline? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28734#M20511</link>
    <description>&lt;P&gt;Does that mean you can run dbutils command?&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 14:06:00 GMT</pubDate>
    <dc:creator>ssudhakarpatil</dc:creator>
    <dc:date>2023-05-02T14:06:00Z</dc:date>
    <item>
      <title>Can you use %run or dbutils.notebook.run in a Delta Live Table pipeline?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28731#M20508</link>
      <description>&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you use a &lt;B&gt;%run&lt;/B&gt; or &lt;B&gt;dbutils.notebook.run() &lt;/B&gt;in a Delta Live Table (DLT) pipeline?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try, I get the following error: "&lt;I&gt;IllegalArgumentException: requirement failed: To enable notebook workflows, please upgrade your Databricks subscription&lt;/I&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, I would like to have one notebook in the DLT pipeline that calls another notebook. The other "called" notebook creates a Delta Live Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "caller" notebook, which will be attached to the DLT Pipeline, would look something like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.notebook.run('dlt_test_notebook', 3600)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And the notebook which will be "called" looks something like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import dlt
&amp;nbsp;
@dlt.table(name = 'test')
    
def f():
        
    # create dataframe
    df = spark.sql(query) 
&amp;nbsp;
    return df&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help is much appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 18:37:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28731#M20508</guid>
      <dc:creator>J_M_W</dc:creator>
      <dc:date>2022-10-06T18:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use %run or dbutils.notebook.run in a Delta Live Table pipeline?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28733#M20510</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Kaniz Fatma​&amp;nbsp;thanks for your answer. I am on the premium pricing tier in Azure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After digging around the logs it would seem that you cannot run &lt;B&gt;magic commands&lt;/B&gt; in a Delta Live Table pipeline. Therefore, you cannot use &lt;B&gt;%run &lt;/B&gt;in a DLT pipeline - which is a shame &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone else who is struggling with this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, JMW&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 08:31:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28733#M20510</guid>
      <dc:creator>J_M_W</dc:creator>
      <dc:date>2022-10-10T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use %run or dbutils.notebook.run in a Delta Live Table pipeline?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28734#M20511</link>
      <description>&lt;P&gt;Does that mean you can run dbutils command?&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 14:06:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-use-run-or-dbutils-notebook-run-in-a-delta-live-table/m-p/28734#M20511</guid>
      <dc:creator>ssudhakarpatil</dc:creator>
      <dc:date>2023-05-02T14:06:00Z</dc:date>
    </item>
  </channel>
</rss>

