<?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 How to change a field when instancing cluster defined as variable? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-change-a-field-when-instancing-cluster-defined-as/m-p/158654#M54748</link>
    <description>&lt;P&gt;I define all clusters as variable in separate files, so I can re-use them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yit337_0-1781015887733.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27669i62C45E4EAE864C98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yit337_0-1781015887733.png" alt="yit337_0-1781015887733.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I am accessing them in jobs as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yit337_1-1781015901247.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27670iE07AFCAC62A762A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yit337_1-1781015901247.png" alt="yit337_1-1781015901247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The issue is that I want to change just the custom_tags in the cluster when instancing it for a job, cause my tags are different for each job. Could this be achieved somehow ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2026 14:39:00 GMT</pubDate>
    <dc:creator>yit337</dc:creator>
    <dc:date>2026-06-09T14:39:00Z</dc:date>
    <item>
      <title>How to change a field when instancing cluster defined as variable?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-change-a-field-when-instancing-cluster-defined-as/m-p/158654#M54748</link>
      <description>&lt;P&gt;I define all clusters as variable in separate files, so I can re-use them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yit337_0-1781015887733.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27669i62C45E4EAE864C98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yit337_0-1781015887733.png" alt="yit337_0-1781015887733.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I am accessing them in jobs as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yit337_1-1781015901247.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27670iE07AFCAC62A762A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yit337_1-1781015901247.png" alt="yit337_1-1781015901247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The issue is that I want to change just the custom_tags in the cluster when instancing it for a job, cause my tags are different for each job. Could this be achieved somehow ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 14:39:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-change-a-field-when-instancing-cluster-defined-as/m-p/158654#M54748</guid>
      <dc:creator>yit337</dc:creator>
      <dc:date>2026-06-09T14:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a field when instancing cluster defined as variable?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-change-a-field-when-instancing-cluster-defined-as/m-p/158662#M54750</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Yes, you can achieve this seamlessly, but not by overriding the custom_tags inside the cluster variable. Instead, you define your specific tags at the Job level, and Databricks automatically merges them with your cluster variable's tags.&lt;/P&gt;&lt;P&gt;Because complex variables in Databricks Asset Bundles (DABs) are substituted entirely as a block, DABs do not support deep-merging or partial overrides (like just changing custom_tags) at the interpolation site (&lt;A class="" href="https://www.google.com/search?q=https://docs.databricks.com/en/dev-tools/bundles/variables.html%23define-a-complex-variable" target="_blank" rel="noopener"&gt;DABs Variables Documentation&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;When you define tags on the job itself, Databricks' built-in tag inheritance takes over:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tag Propagation:&lt;/STRONG&gt; Any tags you define at the Job level automatically propagate down to all Job Clusters created by that job.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Merging:&lt;/STRONG&gt; Databricks safely combines the Job-level tags with any Cluster-level tags defined inside your reusable cluster variable.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Overwrite Precedence:&lt;/STRONG&gt; If both the job and the cluster variable contain a tag with the &lt;STRONG&gt;exact same key&lt;/STRONG&gt;, the &lt;STRONG&gt;Cluster-level tag takes precedence&lt;/STRONG&gt; (it overwrites the job tag).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Practice:&lt;/STRONG&gt; Put static, company-wide tags (e.g., environment, department) inside your reusable cluster variable. Put dynamic, job-specific tags (e.g., pipeline_name, job_owner) directly in the job YAML.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example YAML:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;jobs:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;my_specific_job:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;name:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"My Job Name"&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;# 1. Job-level tags (these propagate to the cluster automatically)&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;tags:&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;custom_job_tag:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"unique_value_for_this_job"&lt;/SPAN&gt; 
    
    &lt;SPAN class=""&gt;job_clusters:&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;job_cluster_key:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"default_cluster"&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;# 2. Reusable cluster variable (with base tags)&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;new_cluster:&lt;/SPAN&gt; &lt;SPAN class=""&gt;${var.my_base_cluster}&lt;/SPAN&gt; &lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Databricks Tag Propagation &amp;amp; Precedence:&lt;/STRONG&gt; Read more in the &lt;A class="" href="https://docs.databricks.com/en/admin/account-settings/usage-detail-tags.html" target="_blank" rel="noopener"&gt;Databricks Usage Details Tags Documentation&lt;/A&gt; (Under "How tags propagate" and "Custom tags").&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jun 2026 16:47:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-change-a-field-when-instancing-cluster-defined-as/m-p/158662#M54750</guid>
      <dc:creator>ShamenParis</dc:creator>
      <dc:date>2026-06-09T16:47:14Z</dc:date>
    </item>
  </channel>
</rss>

