Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templating doesn't work for boolean fields #697

Closed
kanterov opened this issue Aug 25, 2023 · 1 comment
Closed

Templating doesn't work for boolean fields #697

kanterov opened this issue Aug 25, 2023 · 1 comment
Labels
Bug Something isn't working DABs DABs related issues

Comments

@kanterov
Copy link
Contributor

Templating doesn't work for boolean fields

Example error message:

cannot unmarshal string into Go struct field SqlTaskDashboard.resources.jobs.tasks.sql_task.dashboard.pause_subscriptions

The expected behavior is that validation passes, if variable contains valid boolean

Minimal example:

resource.yml:

{
  "resources": {
    "jobs": {
      "my_task": {
        "tasks": [
          {
            "sql_task": {
              "dashboard": {
                "dashboard_id": "abc",
                "pause_subscriptions": "${var.pause_subscriptions}",
              },
              "warehouse_id": "cde"
            },
            "task_key": "test"
          }
        ]
      }
    }
  }
}

databricks.yml:

bundle:
  name: test

include:
  - "resource.yml"

variables:
  pause_subscriptions:
    default: false
    description: Value for pause_subscriptions
@kanterov kanterov added the Bug Something isn't working label Aug 25, 2023
@andrewnester andrewnester added the DABs DABs related issues label Aug 28, 2023
@andrewnester
Copy link
Contributor

Addressed in this PR and released in CLI version 0.214.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DABs DABs related issues
Projects
None yet
Development

No branches or pull requests

2 participants