<?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: Call Databricks notebook in a specific branch from Azure Data Factory? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14330#M8841</link>
    <description>&lt;P&gt;Greetings, I have similar problem. &lt;/P&gt;&lt;P&gt;Did you try to use Databricks workflows instead and schedule them instead on Data Factory?&lt;/P&gt;&lt;P&gt;Because inside workflows it is possible to select a specific branch, so it may actually work.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 14:58:19 GMT</pubDate>
    <dc:creator>Maksym</dc:creator>
    <dc:date>2022-12-20T14:58:19Z</dc:date>
    <item>
      <title>Call Databricks notebook in a specific branch from Azure Data Factory?</title>
      <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14324#M8835</link>
      <description>&lt;P&gt;I'm using the new Databricks Repos functionality and in Azure Data Factory UI for the notebook activity you can browse the Databricks workspace and select Repos &amp;gt; username &amp;gt; project &amp;gt; folder &amp;gt; notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to call a Databricks notebook in a specific branch from Data Factory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 14:04:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14324#M8835</guid>
      <dc:creator>baatchus</dc:creator>
      <dc:date>2021-09-27T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Call Databricks notebook in a specific branch from Azure Data Factory?</title>
      <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14326#M8837</link>
      <description>&lt;P&gt;I believe that the branch is defaulted to the branch that is set via the UI or by the &lt;A href="https://docs.databricks.com/dev-tools/api/latest/repos.html" alt="https://docs.databricks.com/dev-tools/api/latest/repos.html" target="_blank"&gt;repos REST API&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your workflow I would think that you will need to call a &lt;A href="https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/update-repo" alt="https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/update-repo" target="_blank"&gt;REST api to change the branch of the repo&lt;/A&gt;, Then you would execute the notebook. For example, this may be a situation where you create a release branch and want to dynamically change the code that is executing. You may need to make a pull request as well but not certain. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps. I can provide more detail. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 18:43:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14326#M8837</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-09-27T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Call Databricks notebook in a specific branch from Azure Data Factory?</title>
      <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14327#M8838</link>
      <description>&lt;P&gt;Data Factory will take the branch which was set by the Databricks Web UI.&lt;/P&gt;&lt;P&gt;So you can go using the REST API, but what we do is just use different folders.&lt;/P&gt;&lt;P&gt;You can create folders in the REPOS and under each folder you can select another branch.&lt;/P&gt;&lt;P&gt;(f.e. your own user folder for dev, and another one for production/QA etc)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 09:08:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14327#M8838</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-09-28T09:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Call Databricks notebook in a specific branch from Azure Data Factory?</title>
      <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14328#M8839</link>
      <description>&lt;P&gt;Ok so you create top level folders called Production and then sync the repo and have it at the main/master branch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you call the REST API from Data Factory to update the branch before running the notebook activity? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you parameterize the notebook path in Data Factory for the top level folder in Databricks Repos? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does a typical workflow look like? Have you configured Databricks Repos with top level folders on all environments? Dev, Stage, Production?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So many questions but so little documentation and guidance from Databricks/Microsoft on this part..&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 11:59:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14328#M8839</guid>
      <dc:creator>baatchus</dc:creator>
      <dc:date>2021-09-28T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Call Databricks notebook in a specific branch from Azure Data Factory?</title>
      <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14329#M8840</link>
      <description>&lt;P&gt;Exactly.&lt;/P&gt;&lt;P&gt;We have a folder called 'Production' which is set to main, always.&lt;/P&gt;&lt;P&gt;The only time we do something in this folder is to pull the (approved) changes from git.&lt;/P&gt;&lt;P&gt;Data Factory uses this path for executing notebooks.&lt;/P&gt;&lt;P&gt;You can do a rest call to make sure the branch is set to main, but we do not do that as we are disciplined enoug to not mess with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this you can do also for QA (if this resides in the same databricks workspace)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, each developer has his own folder. In this folder he/she can create branches and do commits.  You can only have one branch with open changes, so if you want to switch branch you first have to commit.&lt;/P&gt;&lt;P&gt;Why not a single 'Development' folder instead of one per developer?  Simple: each folder can only have one branch active.  If you work with multiple people into one folder, big mess!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple workspace, the same principles are valid.  A folder per developer and one 'golden' branch which gets promoted to other workspaces.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 12:10:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14329#M8840</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-09-28T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call Databricks notebook in a specific branch from Azure Data Factory?</title>
      <link>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14330#M8841</link>
      <description>&lt;P&gt;Greetings, I have similar problem. &lt;/P&gt;&lt;P&gt;Did you try to use Databricks workflows instead and schedule them instead on Data Factory?&lt;/P&gt;&lt;P&gt;Because inside workflows it is possible to select a specific branch, so it may actually work.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:58:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/call-databricks-notebook-in-a-specific-branch-from-azure-data/m-p/14330#M8841</guid>
      <dc:creator>Maksym</dc:creator>
      <dc:date>2022-12-20T14:58:19Z</dc:date>
    </item>
  </channel>
</rss>

