Skip to content

How do I apply a valueless/key-only column tags? #1270

@excavator-matt

Description

@excavator-matt

As we all know, it is possible to use Databricks Column Tags in both schema.yml and as config. The documentation gives this example for apply the tag data_classification with the value public:

models:
  - name: customers
    columns:
      - name: customer_id
        databricks_tags:
          data_classification: "public"

But how would I apply a valueless tag such as the governed tag class.phone_number?

I tried this

models:
  - name: customers
    columns:
      - name: customer_id
        databricks_tags:
          class.phone_number

But it raised the error Runtime Error in model customers (models/customers.sql)
databricks_tags must be a dictionary

I also tried setting it to null

models:
  - name: customers
    columns:
      - name: customer_id
        databricks_tags:
          class.phone_number: ~

But it raises the error.
ErrorClass=INVALID_PARAMETER_VALUE.INVALID_PARAMETER_VALUE] Tag value None is not an allowed value for tag policy key class.name. Allowed values: []

Could we document this to avoid having to guess?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions