<?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 Is there some form of enablement required to use Delta Live Tables (DLT)? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22198#M15185</link>
    <description>&lt;P&gt;I'm trying to use delta live tables, but if I import even the example notebooks I get a warning saying `ModuleNotFoundError: No module named 'dlt'`. If I try and install via pip it attempts to install a deep learning framework of some sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the requirements document and don't immediately see a runtime requirement; am I missing something? Is there something else I need to do to use this feature?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 21:02:30 GMT</pubDate>
    <dc:creator>tom_shaffner</dc:creator>
    <dc:date>2022-04-25T21:02:30Z</dc:date>
    <item>
      <title>Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22198#M15185</link>
      <description>&lt;P&gt;I'm trying to use delta live tables, but if I import even the example notebooks I get a warning saying `ModuleNotFoundError: No module named 'dlt'`. If I try and install via pip it attempts to install a deep learning framework of some sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the requirements document and don't immediately see a runtime requirement; am I missing something? Is there something else I need to do to use this feature?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 21:02:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22198#M15185</guid>
      <dc:creator>tom_shaffner</dc:creator>
      <dc:date>2022-04-25T21:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22199#M15186</link>
      <description>&lt;P&gt;Yes, you will get that error when you run the notebook.&lt;/P&gt;&lt;P&gt;Follow the below steps-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the Databricks notebook left panel, select 'Jobs'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-04-27 at 3.44.46 PM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1918iE6BACF9E0B069A4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-27 at 3.44.46 PM" alt="Screen Shot 2022-04-27 at 3.44.46 PM" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select 'Delta Live Tables'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-04-27 at 3.45.48 PM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1915i52A700DB9F495505/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-27 at 3.45.48 PM" alt="Screen Shot 2022-04-27 at 3.45.48 PM" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select 'Create Pipeline'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-04-27 at 3.46.08 PM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1914i4E30CAD28B2269CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-27 at 3.46.08 PM" alt="Screen Shot 2022-04-27 at 3.46.08 PM" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fill in the details- Pipeline name and in Notebook Libraries: Point to your notebook where you have the dlt code.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-04-27 at 3.46.25 PM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1930i25B5CD65FC0B9A16/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-27 at 3.46.25 PM" alt="Screen Shot 2022-04-27 at 3.46.25 PM" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click on 'Start' on top right corner&lt;/LI&gt;&lt;LI&gt;This will start the pipeline, populate the tables and give a graphical representation.&lt;/LI&gt;&lt;LI&gt;NOTE: Make sure in your notebook, you attach the cluster&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-quickstart.html" target="test_blank"&gt;https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-quickstart.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 23:07:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22199#M15186</guid>
      <dc:creator>Aashita</dc:creator>
      <dc:date>2022-04-27T23:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22200#M15187</link>
      <description>&lt;P&gt;This error is so annoying... Is it going to be fixed or is there any workaround to avoid it?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:17:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22200#M15187</guid>
      <dc:creator>mangeldfz</dc:creator>
      <dc:date>2022-04-28T08:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22201#M15188</link>
      <description>&lt;P&gt;Well you are not supposed to run the notebook, you just need to create tables Delta Live Tables in the notebook and attach a cluster. After you have done that, you need to go to jobs to start the pipeline. The pipeline gathers resources from the notebook, initializes it, sets up tables and renders the graph. Delta live Tables is of type orchestration. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:01:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22201#M15188</guid>
      <dc:creator>Aashita</dc:creator>
      <dc:date>2022-04-28T17:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22202#M15189</link>
      <description>&lt;P&gt;Got it. That helps, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That could maybe be clearer in the documentation; it wasn't immediately clear to me that I couldn't run this outside a normal notebook environment. From the documentation it sounded like I could develop that way and then set up the DLT environment only for use.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 20:07:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22202#M15189</guid>
      <dc:creator>tom_shaffner</dc:creator>
      <dc:date>2022-04-28T20:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22203#M15190</link>
      <description>&lt;P&gt;Thanks a lot for sharing this great example &lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 21:31:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22203#M15190</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-04-29T21:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there some form of enablement required to use Delta Live Tables (DLT)?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22204#M15191</link>
      <description>&lt;P&gt;Here's the solution I came up with... Replace `import dlt` at the top of your first cell with the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    try:
      import dlt # When run in a pipeline, this package will exist (no way to import it here)
    except ImportError:
      class dlt: # "Mock" the dlt class so that we can syntax check the rest of our python in the databricks notebook editor
        def table(comment, **options): # Mock the @dlt.table attribute so that it is seen as syntactically valid below
          def _(f):
            pass
          return _; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Further mocking may be required depending on how many features from the dlt class you use, but you get the gist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can "catch" the import error and mock out a dlt class sufficiently that the rest of your code can be checked. This slightly improves the developer experience until you get a chance to actually run it in a pipeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As many have noted, the special "dlt" library isn't "available" when running your python code from the databricks notebook editor, only when running it from a pipeline (which means you lose out on being able to easily check your code's syntax before attempting to run it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also can't "%pip install" this library, because it isn't a public package, and the "dlt" package out there has nothing to do with Databricks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 18:10:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-some-form-of-enablement-required-to-use-delta-live/m-p/22204#M15191</guid>
      <dc:creator>Insight6</dc:creator>
      <dc:date>2022-12-01T18:10:39Z</dc:date>
    </item>
  </channel>
</rss>

