Skip to content

Feature: db-agnostic way to unnest json column for test_metadata #4

@MiConnell

Description

@MiConnell

currently the test_metadata column looks something like the below

{
    "name": "accepted_values",
    "kwargs": {
        "values": [
            "Cancelled",
            "Delivered",
            "Shipped"
        ],
        "column_name": "status",
        "model": "{{ get_where_subquery(ref('dim_order')) }}"
    },
    "namespace": null
}

or

{
    "name": "not_null",
    "kwargs": {
        "column_name": "customer_key",
        "model": "{{ get_where_subquery(ref('fact_sales')) }}"
    },
    "namespace": null
}

and it would be very useful to dynamically unnest those values out into columns. This would have to be universal.

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