<?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: Complex type variable in Databricks.yml not working in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81596#M36355</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the validation is fine on your colleague's laptop and not on yours, my first assumption would be that it's a version issue. Do you have the same Databricks CLI version as your colleagues? You can check with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks --version&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also according to &lt;A href="https://docs.databricks.com/en/dev-tools/bundles/index.html" target="_self"&gt;this&lt;/A&gt; documentation, you need Databricks CLI version 0.218.0 or higher to use bundles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 09:22:07 GMT</pubDate>
    <dc:creator>pavlosskev</dc:creator>
    <dc:date>2024-08-02T09:22:07Z</dc:date>
    <item>
      <title>Complex type variable in Databricks.yml not working</title>
      <link>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81582#M36348</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For example here I extract the schedule parameter as a complex type variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;variables:
  schedule:
    description: schedule time
    type: complex
    default:
      quartz_cron_expression: '0 22 17 * * ?'
      timezone_id: Asia/Shanghai
      pause_status: "UNPAUSED"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And here is how I use in my job definition:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    my_workflow_job:
      name: ……
      schedule: ${var.schedule}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I validate the yaml file via command: `databricks bundle validate -t dev -o json`, it told me:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error: no value assigned to required variable schedule. Assignment can be done through the "--var" flag or by setting the BUNDLE_VAR_schedule environment variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don’t know what’s wrong with my code, I follow the example in the document &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#define-a-complex-variable" target="_blank"&gt;&lt;SPAN&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html#define-a-complex-variable&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; to define the complex type variable &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 05:42:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81582#M36348</guid>
      <dc:creator>guangyi</dc:creator>
      <dc:date>2024-08-02T05:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Complex type variable in Databricks.yml not working</title>
      <link>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81594#M36354</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It’s strange, it can pass the validation on my colleague’s laptop. I still cannot pass the validation even restart my Terminal and Macbook&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 08:30:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81594#M36354</guid>
      <dc:creator>guangyi</dc:creator>
      <dc:date>2024-08-02T08:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Complex type variable in Databricks.yml not working</title>
      <link>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81596#M36355</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the validation is fine on your colleague's laptop and not on yours, my first assumption would be that it's a version issue. Do you have the same Databricks CLI version as your colleagues? You can check with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks --version&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also according to &lt;A href="https://docs.databricks.com/en/dev-tools/bundles/index.html" target="_self"&gt;this&lt;/A&gt; documentation, you need Databricks CLI version 0.218.0 or higher to use bundles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 09:22:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81596#M36355</guid>
      <dc:creator>pavlosskev</dc:creator>
      <dc:date>2024-08-02T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Complex type variable in Databricks.yml not working</title>
      <link>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81599#M36356</link>
      <description>&lt;P&gt;You are right, I solved the issue by upgrade the Databricks CLI. My local CLI version is 0.221. According to the &lt;A href="https://github.com/databricks/cli/releases/tag/v0.222.0" target="_self"&gt;release note&lt;/A&gt;, it looks like they support the complex variable since 0.222 only.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 09:25:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/complex-type-variable-in-databricks-yml-not-working/m-p/81599#M36356</guid>
      <dc:creator>guangyi</dc:creator>
      <dc:date>2024-08-02T09:25:15Z</dc:date>
    </item>
  </channel>
</rss>

