<?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 if else conditions in databricks asset bundles in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89156#M37709</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Can I use if-else conditions in&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="vscode-file://vscode-app/c:/Users/sharm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html" target="_blank" rel="noopener"&gt;databricks.yml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and parameterize my asset bundles similarly to Azure Pipelines YAML?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 09:09:31 GMT</pubDate>
    <dc:creator>sandy311</dc:creator>
    <dc:date>2024-09-09T09:09:31Z</dc:date>
    <item>
      <title>if else conditions in databricks asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89156#M37709</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Can I use if-else conditions in&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="vscode-file://vscode-app/c:/Users/sharm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html" target="_blank" rel="noopener"&gt;databricks.yml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and parameterize my asset bundles similarly to Azure Pipelines YAML?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:09:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89156#M37709</guid>
      <dc:creator>sandy311</dc:creator>
      <dc:date>2024-09-09T09:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: if else conditions in databricks asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89161#M37710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119632"&gt;@sandy311&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, since databricks assets bundles are based on GO templating mechanism you can leverage that. So you can do following:&lt;BR /&gt;&lt;A href="https://community.databricks.com/t5/data-engineering/asset-bundles-how-to-conditionally-set-content-of-a-template/td-p/77236" target="_blank"&gt;Solved: Asset Bundles : how to conditionally set content o... - Databricks Community - 77236&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;---
version: "1.0"
{{- if .topic_sourcing }}
status: enabled
topics:
  - name: "my-name"
    table_name: "my-tablename"
{{- else }}
status: disabled   
{{- end }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 10:34:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89161#M37710</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-09T10:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: if else conditions in databricks asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89170#M37713</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If I'm not mistaken, this will only work when we initialize the Databricks asset bundle. What I need is a solution that applies conditions while validating or deploying the bundle.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 11:13:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89170#M37713</guid>
      <dc:creator>sandy311</dc:creator>
      <dc:date>2024-09-09T11:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: if else conditions in databricks asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89190#M37723</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119632"&gt;@sandy311&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Could you please provide more details on what you’re trying to achieve?&lt;/P&gt;&lt;P&gt;It seems like you are looking to use Databricks Asset Bundles as complete CI/CD pipelines. While Databricks Asset Bundles are a crucial part of the CI/CD process, they focus on deploying Databricks resources like notebooks, wheels, and jobs. They do not inherently provide the full capabilities of a CI/CD pipeline such as automated testing, conditional deployments, or rollback mechanisms.&lt;/P&gt;&lt;P&gt;For example, when you mentioned in your previous question about deploying Databricks jobs, validating their execution, and deciding to retain or roll back the deployed code based on the job’s success, this type of workflow is typically managed by a CI/CD platform such as Azure DevOps, GitLab, or GitHub Actions. These platforms allow for advanced control over deployment, testing, and error handling that extends beyond the capabilities of Databricks Asset Bundles alone.&lt;/P&gt;&lt;H3&gt;Key Points:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Integration with CI/CD Pipelines&lt;/STRONG&gt;: Databricks Asset Bundles are used within CI/CD pipelines but do not replace them. They serve as a mechanism for defining and deploying Databricks resources consistently across environments.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;CI/CD Platforms for Workflow Management&lt;/STRONG&gt;: For tasks such as conditional deployments, testing job outcomes, and performing rollbacks, you should leverage CI/CD tools like Azure DevOps, GitLab CI/CD, or GitHub Actions. These tools provide the necessary logic and controls to manage complex workflows and automate decision-making processes.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Deployment Control&lt;/STRONG&gt;: While Databricks Asset Bundles can include some level of parameterization and conditional logic during initialization (using Go templating or variables), the actual control over validation, testing, and deployment flows is best handled by an external CI/CD tool.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;Summary:&lt;/H3&gt;&lt;P&gt;Databricks Asset Bundles are designed for deploying Databricks assets as part of a broader CI/CD strategy. To achieve end-to-end CI/CD functionalities such as testing, validation, and rollback, these bundles should be integrated with a dedicated CI/CD platform.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 14:17:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89190#M37723</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-09T14:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: if else conditions in databricks asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89192#M37724</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119632"&gt;@sandy311&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yep, you're right. It won't work with validation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 14:24:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/89192#M37724</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-09T14:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: if else conditions in databricks asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/114510#M44845</link>
      <description>&lt;P&gt;Can we define a task based on an if else logic based on a variable passed at bundle deploy time.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 11:42:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-else-conditions-in-databricks-asset-bundles/m-p/114510#M44845</guid>
      <dc:creator>davidcardoner</dc:creator>
      <dc:date>2025-04-04T11:42:38Z</dc:date>
    </item>
  </channel>
</rss>

