Skip to content

'dbt.context.macros.MacroNamespace object' has no attribute 'compare_which_columns_differ' #113

Closed
@ryantimjohn

Description

Describe the bug

Compare which columns differ doesn't seem to exist, should be removed from docs here:
https://github.com/dbt-labs/dbt-audit-helper?tab=readme-ov-file#usage-5

Steps to reproduce

ran this code:

{% set old_relation = api.Relation.create(database='x',schema='x, identifier='mart_paidmedia_daily_revenue_performance') %}
{% set dbt_relation = ref('mart_paidmedia_daily_revenue_performance') %}

{{ audit_helper.compare_which_columns_differ(
    a_relation = old_relation,
    b_relation = dbt_relation,
    primary_key = "message_id"
) }}

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions