Skip to content

Commit

Permalink
Merge pull request #503 from oaknorthbank/main
Browse files Browse the repository at this point in the history
  • Loading branch information
b-per authored Oct 24, 2024
2 parents 6be0a27 + 4052cdb commit 77384c6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions macros/on-run-end/print_dbt_project_evaluator_issues.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
{{ print("\n-- " ~ result.node.fqn | join(".") ~ " --") }}

{% set unique_id_model_checked = result.node.depends_on.nodes[0] %}

{% set model_details = graph["nodes"][unique_id_model_checked] %}
{% set name_model_checked = model_details.alias %}
{% set model_schema = quote ~ model_details.schema ~ quote %}
{% set model_database = quote ~ model_details.database ~ quote if model_details.database else None %}
{% set db_schema = model_database ~ "." ~ model_schema if model_database else model_schema %}

{% set sql_statement %}
select * from {{db_schema}}.{{name_model_checked}}
select * from {{ model_details.relation_name }}
{% endset %}

{% set query_results = run_query(sql_statement) %}
Expand All @@ -53,4 +48,4 @@
{{ print("\n") }}
{%- endif %}

{% endmacro %}
{% endmacro %}

0 comments on commit 77384c6

Please sign in to comment.