dbt-labs / dbt-audit-helper

Useful macros when performing data audits
https://hub.getdbt.com/dbt-labs/audit_helper/latest/
Apache License 2.0
329 stars 40 forks source link

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

Open ryantimjohn opened 2 weeks ago

ryantimjohn commented 2 weeks ago

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"
) }}