Skip to content

Templating doesn't work for boolean fields #697

Description

@kanterov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDABsDABs related issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions