Answers for "compare relations macro in data build tool"

SQL
0

compare relations macro in data build tool

{# in dbt Develop #}

{% set old_etl_relation=adapter.get_relation(
      database=target.database,
      schema="old_etl_schema",
      identifier="fct_orders"
) -%}

{% set dbt_relation=ref('fct_orders') %}

{{ audit_helper.compare_relations(
    a_relation=old_etl_relation,
    b_relation=dbt_relation,
    exclude_columns=["loaded_at"],
    primary_key="order_id"
) }}
Posted by: Guest on June-17-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language