<?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: When developing a Delta Live Table, can I test my code in the notebook? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18956#M12642</link>
    <description>&lt;P&gt;By test , did you mean running them from notebooks ( as against an IDE ) or, unit testing from notebooks. &lt;/P&gt;&lt;P&gt;If it is the first, checkout &lt;A href="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-quickstart.html#example-notebooks" alt="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-quickstart.html#example-notebooks" target="_blank"&gt;example notebooks&lt;/A&gt;. If it is the latter you could abstract out transformations into separate functions ( that accepts a dataframe and returns a dataframe) and have them unit tested using standard unit testing practices. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 22:11:00 GMT</pubDate>
    <dc:creator>sajith_appukutt</dc:creator>
    <dc:date>2021-06-25T22:11:00Z</dc:date>
    <item>
      <title>When developing a Delta Live Table, can I test my code in the notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18954#M12640</link>
      <description>&lt;P&gt;Just wondering about the dev flow when building Delta Live Tables. I write my code in the notebook so it would be useful to be able to test it out from within that environment.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 19:09:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18954#M12640</guid>
      <dc:creator>User16826992666</dc:creator>
      <dc:date>2021-06-25T19:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a Delta Live Table, can I test my code in the notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18955#M12641</link>
      <description>&lt;P&gt;I don't think Delta Live Table code is interactive, we need to create Pipeline and test the code.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 19:16:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18955#M12641</guid>
      <dc:creator>Srikanth_Gupta_</dc:creator>
      <dc:date>2021-06-25T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a Delta Live Table, can I test my code in the notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18956#M12642</link>
      <description>&lt;P&gt;By test , did you mean running them from notebooks ( as against an IDE ) or, unit testing from notebooks. &lt;/P&gt;&lt;P&gt;If it is the first, checkout &lt;A href="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-quickstart.html#example-notebooks" alt="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-quickstart.html#example-notebooks" target="_blank"&gt;example notebooks&lt;/A&gt;. If it is the latter you could abstract out transformations into separate functions ( that accepts a dataframe and returns a dataframe) and have them unit tested using standard unit testing practices. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 22:11:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18956#M12642</guid>
      <dc:creator>sajith_appukutt</dc:creator>
      <dc:date>2021-06-25T22:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a Delta Live Table, can I test my code in the notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18957#M12643</link>
      <description>&lt;P&gt;The delta live tables code in a notebook is essentially a template for how you want your data transformed. The Pipelines feature is the execution/operationlization component for that notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With respect to being able to test the notebook, one option could be to setup up a Dev/Test Pipeline that lands the data in a dev/test &lt;A href="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-configuration.html#cluster-configuration" alt="https://docs.databricks.com/data-engineering/delta-live-tables/delta-live-tables-configuration.html#cluster-configuration" target="_blank"&gt;target database&lt;/A&gt; run validation queries either using a different databricks notebook or Databricks SQL and then push it to production with a different pipeline that send data to a production target database&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 22:34:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/18957#M12643</guid>
      <dc:creator>aladda</dc:creator>
      <dc:date>2021-06-25T22:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a Delta Live Table, can I test my code in the notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/37757#M26442</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As a fellow developer, I can definitely relate to the question User16826992666 has raised regarding testing code in a notebook when developing a Delta Live Table.&lt;/P&gt;&lt;P&gt;In my experience, notebooks are a fantastic tool for exploratory data analysis and prototyping code. When it comes to testing your code for Delta Live Tables, you can certainly leverage the notebook environment to your advantage. It allows you to execute code cells and observe the results, making it convenient for iterative development.&lt;/P&gt;&lt;P&gt;I would recommend using the notebook to validate your code logic, verify data transformations, and ensure that your Delta Live Table behaves as expected. You can simulate the expected behavior of your live table by creating sample data or using subsets of your actual data. Tutorial here: &lt;A href="https://andersenlab.com/services/quality-assurance-services" target="_blank"&gt;https://andersenlab.com/services/quality-assurance-services&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, keep in mind that notebooks may not fully replicate the production environment, especially when it comes to handling large-scale data or simulating real-time data updates. So, while the notebook is great for initial testing and debugging, it's essential to conduct thorough testing and performance evaluation in a dedicated development or staging environment before deploying your Delta Live Table to production.&lt;/P&gt;&lt;P&gt;Happy coding and testing!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":writing_hand:"&gt;✍️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 08:37:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/37757#M26442</guid>
      <dc:creator>martinez</dc:creator>
      <dc:date>2023-07-17T08:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a Delta Live Table, can I test my code in the notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/37771#M26450</link>
      <description>&lt;P&gt;You need to create a DLT pipeline to test the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 12:20:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/when-developing-a-delta-live-table-can-i-test-my-code-in-the/m-p/37771#M26450</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-07-17T12:20:23Z</dc:date>
    </item>
  </channel>
</rss>

